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

Function isAngularRoute

src/resolution/frameworks/angular-router.ts:352–354  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

350
351/** True for a route node this resolver emitted. */
352export function isAngularRoute(node: Node): boolean {
353 return node.kind === 'route' && node.id.endsWith(':angular') && node.id === routeId(node.filePath, node.startLine, inFilePath(node));
354}
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 {

Callers 1

inAngularTableFunction · 0.85

Calls 2

inFilePathFunction · 0.85
routeIdFunction · 0.70

Tested by

no test coverage detected