(q query)
| 1414 | } |
| 1415 | |
| 1416 | func 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 | |
| 1426 | func getNodeDepth(q query) int { |
| 1427 | type Depth interface { |