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

Function cppQualifiedIdName

src/extraction/languages/c-cpp.ts:387–391  ·  view source on GitHub ↗

* The name a C++ `qualified_identifier` ends in, past its scopes: the * `template_function` `ReadPrimitive ` for * `WireFormatLite::ReadPrimitive `. Null * when the tree lacks one.

(qid: SyntaxNode)

Source from the content-addressed store, hash-verified

385 * when the tree lacks one.
386 */
387function cppQualifiedIdName(qid: SyntaxNode): SyntaxNode | null {
388 let name: SyntaxNode | null = qid;
389 while (name?.type === 'qualified_identifier') name = getChildByField(name, 'name');
390 return name;
391}
392
393/**
394 * A C++ definition's name node, as named: an explicit specialization's

Callers 2

extractCppReceiverTypeFunction · 0.85

Calls 1

getChildByFieldFunction · 0.90

Tested by

no test coverage detected