IsNamed returns true if the underlying node is named
()
| 330 | |
| 331 | // IsNamed returns true if the underlying node is named |
| 332 | func (n *Node) IsNamed() bool { |
| 333 | if !n.IsValid() { |
| 334 | return false |
| 335 | } |
| 336 | return n.node.IsNamed() |
| 337 | } |
| 338 | |
| 339 | // ForEachChild iterates over a node's children in a depth-first |
| 340 | // manner, calling the supplied function for each node |