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

Function cMemberTypeNames

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

Source from the content-addressed store, hash-verified

107 * Mirrored in the kernel (ccpp/mod.rs).
108 */
109export function cMemberTypeNames(specifier: SyntaxNode, ownName: string, source: string): CTypeName[] {
110 const names: CTypeName[] = [];
111 const own = new Set([ownName]);
112 const tag = getChildByField(specifier, 'name');
113 if (tag) own.add(stripCppTemplateArgs(getNodeText(tag, source)));
114 const body = getChildByField(specifier, 'body');
115 if (body) collectMemberTypeNames(body, own, source, names);
116 return names;
117}
118
119/**
120 * 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