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

Function getNodePosition

query.go:1416–1424  ·  view source on GitHub ↗
(q query)

Source from the content-addressed store, hash-verified

1414}
1415
1416func getNodePosition(q query) int {
1417 type Position interface {
1418 position() int
1419 }
1420 if count, ok := q.(Position); ok {
1421 return count.position()
1422 }
1423 return 1
1424}
1425
1426func getNodeDepth(q query) int {
1427 type Depth interface {

Callers 1

doMethod · 0.85

Calls 1

positionMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…