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

Function ref

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

Source from the content-addressed store, hash-verified

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