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

Function ref

src/resolution/frameworks/angular-router.ts:1034–1042  ·  view source on GitHub ↗
(component: AngularComponentRef, layout: boolean)

Source from the content-addressed store, hash-verified

1032 };
1033 nodes.push(node);
1034 const ref = (component: AngularComponentRef, layout: boolean): UnresolvedRef => ({
1035 fromNodeId: node.id,
1036 referenceName: `${layout ? 'layout:' : ''}${component.spec === null ? component.name : `import:${component.spec}#${component.name ?? 'default'}`}`,
1037 referenceKind: 'references',
1038 line: route.line,
1039 column: 0,
1040 filePath,
1041 language: 'typescript',
1042 });
1043 if (route.component) references.push(ref(route.component, false));
1044 // The layouts around it: their links and buttons are on this screen too.
1045 for (const layout of route.layouts) references.push(ref(layout, true));

Callers 1

extractFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected