NewNode allocates a node of a specified type.
(typ NodeType)
| 134 | |
| 135 | // NewNode allocates a node of a specified type. |
| 136 | func NewNode(typ NodeType) *Node { |
| 137 | return &Node{ |
| 138 | Type: typ, |
| 139 | open: true, |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | func (n *Node) String() string { |
| 144 | ellipsis := "" |
no outgoing calls
no test coverage detected
searching dependent graphs…