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

Function predicate

func.go:29–37  ·  view source on GitHub ↗

The XPath function list.

(q query)

Source from the content-addressed store, hash-verified

27// The XPath function list.
28
29func predicate(q query) func(NodeNavigator) bool {
30 type Predicater interface {
31 Test(NodeNavigator) bool
32 }
33 if p, ok := q.(Predicater); ok {
34 return p.Test
35 }
36 return func(NodeNavigator) bool { return true }
37}
38
39// positionFunc is a XPath Node Set functions position().
40func positionFunc() func(query, iterator) interface{} {

Callers 4

positionFuncFunction · 0.85
lastFuncFunction · 0.85
countFuncFunction · 0.85
stringJoinFuncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…