NamedChildCount returns the number of named children a Node has.
()
| 102 | |
| 103 | // NamedChildCount returns the number of named children a Node has. |
| 104 | func (n *Node) NamedChildCount() int { |
| 105 | if !n.IsValid() { |
| 106 | return 0 |
| 107 | } |
| 108 | return int(n.node.NamedChildCount()) |
| 109 | } |
| 110 | |
| 111 | // Childten returns a slide of *Node containing all children for a node |
| 112 | func (n *Node) Children() []*Node { |
no test coverage detected