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

Function getNodeDepth

query.go:1426–1434  ·  view source on GitHub ↗
(q query)

Source from the content-addressed store, hash-verified

1424}
1425
1426func getNodeDepth(q query) int {
1427 type Depth interface {
1428 depth() int
1429 }
1430 if count, ok := q.(Depth); ok {
1431 return count.depth()
1432 }
1433 return 0
1434}
1435
1436func getXPathType(i interface{}) resultType {
1437 v := reflect.ValueOf(i)

Callers 1

SelectMethod · 0.85

Calls 1

depthMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…