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

Function parse

parse.go:567–573  ·  view source on GitHub ↗

Parse parsing the XPath express string expr and returns a tree node.

(expr string, namespaces map[string]string)

Source from the content-addressed store, hash-verified

565
566// Parse parsing the XPath express string expr and returns a tree node.
567func parse(expr string, namespaces map[string]string) node {
568 r := &scanner{text: expr}
569 r.nextChar()
570 r.nextItem()
571 p := &parser{r: r, namespaces: namespaces}
572 return p.parseExpression(nil)
573}
574
575// rootNode holds a top-level node of tree.
576type rootNode struct {

Callers 1

buildFunction · 0.85

Calls 3

nextCharMethod · 0.95
nextItemMethod · 0.95
parseExpressionMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…