(path: string | undefined)
| 204 | z: number; |
| 205 | } |
| 206 | const hierarchyPath = (path: string | undefined) => !path || path === '{}' ? undefined |
| 207 | : path.replaceAll('\\', '/').replace(/^\.\//, '').replace(/\/+/g, '/').replace(/\/$/, ''); |
| 208 | const parentPath = (path: string) => path.includes('/') ? path.slice(0, path.lastIndexOf('/')) : ''; |
| 209 | const hierarchyNodeOrder = (a: SemanticNode, b: SemanticNode) => compare(hierarchyPath(a.filePath) ?? a.areaPath ?? '', hierarchyPath(b.filePath) ?? b.areaPath ?? '') |
| 210 | || (a.line ?? 0) - (b.line ?? 0) || compare(a.id, b.id); |
no outgoing calls
no test coverage detected