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

Struct ancestorQuery

query.go:146–155  ·  view source on GitHub ↗

ancestorQuery is an XPath ancestor node query.(ancestor::*|ancestor-self::*)

Source from the content-addressed store, hash-verified

144
145// ancestorQuery is an XPath ancestor node query.(ancestor::*|ancestor-self::*)
146type ancestorQuery struct {
147 name string
148 iterator func() NodeNavigator
149 table map[uint64]bool
150 pos int
151
152 Self bool
153 Input query
154 Predicate func(NodeNavigator) bool
155}
156
157func (a *ancestorQuery) Select(t iterator) NodeNavigator {
158 if a.table == nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected