* Get parent of a node
(nodeId: string)
| 141 | * Get parent of a node |
| 142 | */ |
| 143 | getParent(nodeId: string): FileNode | undefined { |
| 144 | const node = this.nodes.get(nodeId); |
| 145 | if (!node || !node.parentId) { |
| 146 | return undefined; |
| 147 | } |
| 148 | return this.nodes.get(node.parentId); |
| 149 | } |
| 150 | |
| 151 | /** |
| 152 | * Get root node |
nothing calls this directly
no outgoing calls
no test coverage detected