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

Function isAngularRoute

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

Source from the content-addressed store, hash-verified

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

Callers 1

inAngularTableFunction · 0.85

Calls 2

inFilePathFunction · 0.85
routeIdFunction · 0.70

Tested by

no test coverage detected