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

Function extractCppQualifiedMethodName

src/extraction/languages/c-cpp.ts:75–84  ·  view source on GitHub ↗
(node: SyntaxNode, source: string)

Source from the content-addressed store, hash-verified

73}
74
75function extractCppQualifiedMethodName(node: SyntaxNode, source: string): string | undefined {
76 const macroDefined = recoverCppMacroDefinedName(node, source);
77 if (macroDefined) return macroDefined;
78 const declarator = getChildByField(node, 'declarator');
79 if (!declarator) return undefined;
80 const qid = findDeclaratorQualifiedId(declarator);
81 if (!qid) return undefined;
82 const parts = getNodeText(qid, source).trim().split('::').filter(Boolean);
83 return parts[parts.length - 1];
84}
85
86function extractCppReceiverType(node: SyntaxNode, source: string): string | undefined {
87 const declarator = getChildByField(node, 'declarator');

Callers

nothing calls this directly

Calls 4

getChildByFieldFunction · 0.90
getNodeTextFunction · 0.90

Tested by

no test coverage detected