MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / inFilePath

Function inFilePath

src/resolution/frameworks/angular-router.ts:357–361  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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. */
357function 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

Callers 3

isAngularRouteFunction · 0.85
angularRouteTableFunction · 0.85
postExtractFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected