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

Method Select

query.go:702–713  ·  view source on GitHub ↗
(t iterator)

Source from the content-addressed store, hash-verified

700}
701
702func (p *parentQuery) Select(t iterator) NodeNavigator {
703 for {
704 node := p.Input.Select(t)
705 if node == nil {
706 return nil
707 }
708 node = node.Copy()
709 if node.MoveToParent() && p.Predicate(node) {
710 return node
711 }
712 }
713}
714
715func (p *parentQuery) Evaluate(t iterator) interface{} {
716 p.Input.Evaluate(t)

Callers

nothing calls this directly

Calls 3

SelectMethod · 0.65
CopyMethod · 0.65
MoveToParentMethod · 0.65

Tested by

no test coverage detected