Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
(v walker.Visitor)
| 46 | // Walk traverses nodes |
| 47 | // Walk is invoked recursively until v.EnterNode returns true |
| 48 | func (n *Plus) Walk(v walker.Visitor) { |
| 49 | if v.EnterNode(n) == false { |
| 50 | return |
| 51 | } |
| 52 | |
| 53 | if n.Left != nil { |
| 54 | v.EnterChildNode("Left", n) |
| 55 | n.Left.Walk(v) |
| 56 | v.LeaveChildNode("Left", n) |
| 57 | } |
| 58 | |
| 59 | if n.Right != nil { |
| 60 | v.EnterChildNode("Right", n) |
| 61 | n.Right.Walk(v) |
| 62 | v.LeaveChildNode("Right", n) |
| 63 | } |
| 64 | |
| 65 | v.LeaveNode(n) |
| 66 | } |
nothing calls this directly
no test coverage detected