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

Function ref

src/resolution/frameworks/react.ts:1954–1955  ·  view source on GitHub ↗
(referenceName: string)

Source from the content-addressed store, hash-verified

1952function routeReferences(route: RouteDeclaration, fromNodeId: string, filePath: string, line: number): UnresolvedRef[] {
1953 const language = filePath.endsWith('.tsx') ? 'tsx' : 'jsx';
1954 const ref = (referenceName: string): UnresolvedRef =>
1955 ({ fromNodeId, referenceName, referenceKind: 'references', line, column: 0, filePath, language });
1956 const refs: UnresolvedRef[] = [];
1957 const target = route.component ?? route.lazy;
1958 if (target) refs.push(ref(target));

Callers 1

routeReferencesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected