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

Method parsePredicate

parse.go:360–365  ·  view source on GitHub ↗

Predicate ::= '[' PredicateExpr ']'

(n node)

Source from the content-addressed store, hash-verified

358
359// Predicate ::= '[' PredicateExpr ']'
360func (p *parser) parsePredicate(n node) node {
361 p.skipItem(itemLBracket)
362 opnd := p.parseExpression(n)
363 p.skipItem(itemRBracket)
364 return opnd
365}
366
367// LocationPath ::= RelativeLocationPath | AbsoluteLocationPath
368func (p *parser) parseLocationPath(n node) (opnd node) {

Callers 2

parseFilterExprMethod · 0.95
parseStepMethod · 0.95

Calls 2

skipItemMethod · 0.95
parseExpressionMethod · 0.95

Tested by

no test coverage detected