| 10 | } |
| 11 | |
| 12 | interface DirNode { |
| 13 | name: string; |
| 14 | fullPath: string; |
| 15 | children: Map<string, DirNode>; |
| 16 | nodeIds: Set<number>; |
| 17 | directNodes: GraphNode[]; |
| 18 | } |
| 19 | |
| 20 | function buildFileTree(nodes: GraphNode[]): DirNode { |
| 21 | const root: DirNode = { name: "/", fullPath: "", children: new Map(), nodeIds: new Set(), directNodes: [] }; |
nothing calls this directly
no outgoing calls
no test coverage detected