InsertNodeAt inserts at the specified position a new tree node with the specified text at the end of this tree and returns pointer to the new node.
(pos int, text string)
| 88 | // with the specified text at the end of this tree |
| 89 | // and returns pointer to the new node. |
| 90 | func (t *Tree) InsertNodeAt(pos int, text string) *TreeNode { |
| 91 | |
| 92 | n := newTreeNode(text, t, nil) |
| 93 | n.update() |
| 94 | n.recalc() |
| 95 | n.litem = t.List.InsertAt(pos, n) |
| 96 | return n |
| 97 | } |
| 98 | |
| 99 | // AddNode adds a new tree node with the specified text |
| 100 | // at the end of this tree and returns a pointer to the new node. |
nothing calls this directly
no test coverage detected