MCPcopy
hub / github.com/kubernetes/client-go / parseLeftDelim

Method parseLeftDelim

util/jsonpath/parser.go:139–146  ·  view source on GitHub ↗

parseLeftDelim scans the left delimiter, which is known to be present.

(cur *ListNode)

Source from the content-addressed store, hash-verified

137
138// parseLeftDelim scans the left delimiter, which is known to be present.
139func (p *Parser) parseLeftDelim(cur *ListNode) error {
140 p.pos += len(leftDelim)
141 p.consumeText()
142 newNode := newList()
143 cur.append(newNode)
144 cur = newNode
145 return p.parseInsideAction(cur)
146}
147
148func (p *Parser) parseInsideAction(cur *ListNode) error {
149 prefixMap := map[string]func(*ListNode) error{

Callers 1

parseTextMethod · 0.95

Calls 4

consumeTextMethod · 0.95
parseInsideActionMethod · 0.95
newListFunction · 0.85
appendMethod · 0.80

Tested by

no test coverage detected