(tokens Tokens)
| 164 | } |
| 165 | |
| 166 | func (ns *nodes) AppendUnstructuredTokens(tokens Tokens) *node { |
| 167 | if len(tokens) == 0 { |
| 168 | return nil |
| 169 | } |
| 170 | n := newNode(tokens) |
| 171 | ns.AppendNode(n) |
| 172 | n.list = ns |
| 173 | return n |
| 174 | } |
| 175 | |
| 176 | // FindNodeWithContent searches the nodes for a node whose content equals |
| 177 | // the given content. If it finds one then it returns it. Otherwise it returns |
no test coverage detected