(n *node)
| 122 | } |
| 123 | |
| 124 | func (ns *nodes) AppendNode(n *node) { |
| 125 | if ns.last != nil { |
| 126 | n.before = ns.last |
| 127 | ns.last.after = n |
| 128 | } |
| 129 | n.list = ns |
| 130 | ns.last = n |
| 131 | if ns.first == nil { |
| 132 | ns.first = n |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | // Insert inserts a nodeContent at a given position. |
| 137 | // This is just a wrapper for InsertNode. See InsertNode for details. |
no outgoing calls
no test coverage detected