MCPcopy Create free account
hub / github.com/antchfx/xmlquery / MoveToChild

Method MoveToChild

query.go:242–251  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

240}
241
242func (x *NodeNavigator) MoveToChild() bool {
243 if x.attr != -1 {
244 return false
245 }
246 if node := x.curr.FirstChild; node != nil {
247 x.curr = node
248 return true
249 }
250 return false
251}
252
253func (x *NodeNavigator) MoveToFirst() bool {
254 if x.attr != -1 || x.curr.PrevSibling == nil {

Callers 1

TestNavigatorFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestNavigatorFunction · 0.76