MCPcopy Create free account
hub / github.com/antchfx/xpath / checkItem

Function checkItem

parse.go:160–164  ·  view source on GitHub ↗
(r *scanner, typ itemType)

Source from the content-addressed store, hash-verified

158}
159
160func checkItem(r *scanner, typ itemType) {
161 if r.typ != typ {
162 panic(fmt.Sprintf("%s has an invalid token", r.text))
163 }
164}
165
166// parseExpression parsing the expression with input node n.
167func (p *parser) parseExpression(n node) node {

Callers 3

skipItemMethod · 0.85
parseNodeTestMethod · 0.85
parsePrimaryExprMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…