* The outline parent of a symbol: its container within the file, or null when * that container is the file node itself (a top-level symbol has no parent row).
( id: string, parentOf: Map<string, string>, fileNodeId: string | undefined )
| 219 | * that container is the file node itself (a top-level symbol has no parent row). |
| 220 | */ |
| 221 | function resolveOutlineParent( |
| 222 | id: string, |
| 223 | parentOf: Map<string, string>, |
| 224 | fileNodeId: string | undefined |
| 225 | ): string | null { |
| 226 | const parent = parentOf.get(id); |
| 227 | if (!parent || parent === fileNodeId) return null; |
| 228 | return parent; |
| 229 | } |
| 230 | |
| 231 | function depthOf( |
| 232 | id: string, |
no test coverage detected