baseNode provides common fields.
| 38 | |
| 39 | // baseNode provides common fields. |
| 40 | type baseNode struct { |
| 41 | nodeType NodeType |
| 42 | nodeChildren []Node |
| 43 | level int |
| 44 | content string |
| 45 | } |
| 46 | |
| 47 | func (n *baseNode) Type() NodeType { return n.nodeType } |
| 48 | func (n *baseNode) Children() []Node { return n.nodeChildren } |
nothing calls this directly
no outgoing calls
no test coverage detected