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

Function pageComponentRef

src/resolution/frameworks/page-component.ts:23–35  ·  view source on GitHub ↗
(route: Node, extension: string, language: Language)

Source from the content-addressed store, hash-verified

21}
22
23export function pageComponentRef(route: Node, extension: string, language: Language): UnresolvedRef {
24 const name = pageComponentName(route.filePath, extension);
25 return {
26 fromNodeId: route.id,
27 referenceName: name,
28 referenceKind: 'calls',
29 line: 1,
30 column: 0,
31 filePath: route.filePath,
32 language,
33 candidates: [name],
34 };
35}
36
37/** A page route's reference to its file's own component, or null when this is not one. */
38export function resolvePageComponent(ref: UnresolvedRef, context: ResolutionContext): ResolvedRef | null {

Callers 2

extractFunction · 0.90
extractFunction · 0.90

Calls 1

pageComponentNameFunction · 0.85

Tested by

no test coverage detected