Determines if a node is missing (either `nil` or empty)
(node *Node)
| 64 | |
| 65 | // Determines if a node is missing (either `nil` or empty) |
| 66 | func NodeIsMissing(node *Node) bool { |
| 67 | return node == nil || node.Loc.Pos() == node.Loc.End() && node.Loc.Pos() >= 0 && node.Kind != KindEndOfFile |
| 68 | } |
| 69 | |
| 70 | // Determines if a node is present |
| 71 | func NodeIsPresent(node *Node) bool { |
no test coverage detected