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

Function newAxisNode

parse.go:89–103  ·  view source on GitHub ↗

newAxisNode returns new axis node AxisNode.

(axisType string, typeTest NodeType, localName, prefix, prop string, n node, opts ...func(p *axisNode))

Source from the content-addressed store, hash-verified

87
88// newAxisNode returns new axis node AxisNode.
89func newAxisNode(axisType string, typeTest NodeType, localName, prefix, prop string, n node, opts ...func(p *axisNode)) node {
90 a := axisNode{
91 nodeType: nodeAxis,
92 typeTest: typeTest,
93 LocalName: localName,
94 Prefix: prefix,
95 AxisType: axisType,
96 Prop: prop,
97 Input: n,
98 }
99 for _, o := range opts {
100 o(&a)
101 }
102 return &a
103}
104
105// newVariableNode returns new variable node VariableNode.
106func newVariableNode(prefix, name string) node {

Callers 6

processFunctionMethod · 0.85
parsePathExprMethod · 0.85
parseLocationPathMethod · 0.85
parseStepMethod · 0.85
parseNodeTestMethod · 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…