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

Function inFilePath

src/resolution/frameworks/angular-router.ts:359–363  ·  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

357
358/** The path a route has within its own file, before any mount — kept in the qualified name so the cross-file pass is idempotent. */
359function inFilePath(node: Node): string {
360 const marker = '::route:';
361 const at = node.qualifiedName.indexOf(marker);
362 return at < 0 ? node.name : node.qualifiedName.slice(at + marker.length);
363}
364
365// =============================================================================
366// 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