Parse parsing the XPath express string expr and returns a tree node.
(expr string, namespaces map[string]string)
| 565 | |
| 566 | // Parse parsing the XPath express string expr and returns a tree node. |
| 567 | func 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. |
| 576 | type rootNode struct { |
no test coverage detected
searching dependent graphs…