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

Method Select

query.go:118–126  ·  view source on GitHub ↗
(t iterator)

Source from the content-addressed store, hash-verified

116}
117
118func (a *absoluteQuery) Select(t iterator) (n NodeNavigator) {
119 if a.count > 0 {
120 return
121 }
122 a.count++
123 n = t.Current().Copy()
124 n.MoveToRoot()
125 return
126}
127
128func (a *absoluteQuery) Evaluate(t iterator) interface{} {
129 a.count = 0

Callers

nothing calls this directly

Calls 3

CopyMethod · 0.65
CurrentMethod · 0.65
MoveToRootMethod · 0.65

Tested by

no test coverage detected