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

Function namesType

src/resolution/frameworks/react.ts:2410–2413  ·  view source on GitHub ↗

* Whether a reference is written where TypeScript reads a type: what a class * implements, or a type annotation's name — the extractor writes a * `references` ref only for a name in a type, and a route's reference to what * it renders comes from the router's own extraction.

(ref: UnresolvedRef)

Source from the content-addressed store, hash-verified

2408 * it renders comes from the router's own extraction.
2409 */
2410function namesType(ref: UnresolvedRef): boolean {
2411 return ref.referenceKind === 'implements' ||
2412 (ref.referenceKind === 'references' && !ref.fromNodeId.startsWith('route:'));
2413}
2414
2415/**
2416 * Resolve a component reference using name-based lookup

Callers 1

resolveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected