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

Method Select

query.go:742–753  ·  view source on GitHub ↗
(t iterator)

Source from the content-addressed store, hash-verified

740}
741
742func (s *selfQuery) Select(t iterator) NodeNavigator {
743 for {
744 node := s.Input.Select(t)
745 if node == nil {
746 return nil
747 }
748
749 if s.Predicate(node) {
750 return node
751 }
752 }
753}
754
755func (s *selfQuery) Evaluate(t iterator) interface{} {
756 s.Input.Evaluate(t)

Callers

nothing calls this directly

Calls 1

SelectMethod · 0.65

Tested by

no test coverage detected