The path a route has within its own file, before any mount — kept in the qualified name so the cross-file pass is idempotent.
(node: Node)
| 355 | |
| 356 | /** The path a route has within its own file, before any mount — kept in the qualified name so the cross-file pass is idempotent. */ |
| 357 | function inFilePath(node: Node): string { |
| 358 | const marker = '::route:'; |
| 359 | const at = node.qualifiedName.indexOf(marker); |
| 360 | return at < 0 ? node.name : node.qualifiedName.slice(at + marker.length); |
| 361 | } |
| 362 | |
| 363 | // ============================================================================= |
| 364 | // The component a file lazily exports |
no outgoing calls
no test coverage detected