NewInstance returns a new instance of this node type.
()
| 138 | |
| 139 | // NewInstance returns a new instance of this node type. |
| 140 | func (n *NodeBase) NewInstance() Node { |
| 141 | return reflect.New(reflect.TypeOf(n.This).Elem()).Interface().(Node) |
| 142 | } |
| 143 | |
| 144 | // Parents: |
| 145 |