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

Function cMemberTypeNames

src/extraction/languages/c-cpp.ts:112–120  ·  view source on GitHub ↗
(specifier: SyntaxNode, ownName: string, source: string)

Source from the content-addressed store, hash-verified

110 * Mirrored in the kernel (ccpp/mod.rs).
111 */
112export function cMemberTypeNames(specifier: SyntaxNode, ownName: string, source: string): CTypeName[] {
113 const names: CTypeName[] = [];
114 const own = new Set([ownName]);
115 const tag = getChildByField(specifier, 'name');
116 if (tag) own.add(stripCppTemplateArgs(getNodeText(tag, source)));
117 const body = getChildByField(specifier, 'body');
118 if (body) collectMemberTypeNames(body, own, source, names);
119 return names;
120}
121
122/**
123 * The type names a C or C++ alias is declared with: `redisObject` in `typedef

Callers 1

Calls 5

getChildByFieldFunction · 0.90
getNodeTextFunction · 0.90
stripCppTemplateArgsFunction · 0.85
collectMemberTypeNamesFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected