Node represents an XML node with a name, attributes, and child tokens.
| 10 | |
| 11 | // Node represents an XML node with a name, attributes, and child tokens. |
| 12 | type Node struct { |
| 13 | Parent *Node |
| 14 | Name Name |
| 15 | Attrs *Attributes |
| 16 | Children []Token |
| 17 | } |
| 18 | |
| 19 | // FilterChildren removes all child nodes that do not satisfy the given predicate function. |
| 20 | func (n *Node) FilterChildren(pred func(child Token) bool) { |
nothing calls this directly
no outgoing calls
no test coverage detected