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

Method parseExpression

parse.go:167–174  ·  view source on GitHub ↗

parseExpression parsing the expression with input node n.

(n node)

Source from the content-addressed store, hash-verified

165
166// parseExpression parsing the expression with input node n.
167func (p *parser) parseExpression(n node) node {
168 if p.d = p.d + 1; p.d > 200 {
169 panic("the xpath query is too complex(depth > 200)")
170 }
171 n = p.parseOrExpr(n)
172 p.d--
173 return n
174}
175
176// next scanning next item on forward.
177func (p *parser) next() bool {

Callers 4

parsePredicateMethod · 0.95
parsePrimaryExprMethod · 0.95
parseMethodMethod · 0.95
parseFunction · 0.95

Calls 1

parseOrExprMethod · 0.95

Tested by

no test coverage detected