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

Function isCppDeclaredTypeRef

src/resolution/cpp-supertypes.ts:93–97  ·  view source on GitHub ↗
(ref: UnresolvedRef, context: ResolutionContext)

Source from the content-addressed store, hash-verified

91 * its function's.
92 */
93export function isCppDeclaredTypeRef(ref: UnresolvedRef, context: ResolutionContext): boolean {
94 if (ref.referenceKind !== 'references' || (ref.language !== 'cpp' && ref.language !== 'c')) return false;
95 const holder = context.getNodeById?.(ref.fromNodeId);
96 return !!holder && isCFamily(holder) && (CLASS_KINDS.has(holder.kind) || holder.kind === 'type_alias');
97}
98
99/**
100 * The declarations code at `site` can see (visibleFrom), read for code in

Callers 1

resolveOneInnerMethod · 0.90

Calls 3

hasMethod · 0.80
isCFamilyFunction · 0.70
getNodeByIdMethod · 0.65

Tested by

no test coverage detected