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

Method Select

query.go:89–95  ·  view source on GitHub ↗
(t iterator)

Source from the content-addressed store, hash-verified

87}
88
89func (c *contextQuery) Select(t iterator) NodeNavigator {
90 if c.count > 0 {
91 return nil
92 }
93 c.count++
94 return t.Current().Copy()
95}
96
97func (c *contextQuery) Evaluate(iterator) interface{} {
98 c.count = 0

Callers

nothing calls this directly

Calls 2

CopyMethod · 0.65
CurrentMethod · 0.65

Tested by

no test coverage detected