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

Function cppQualifiedIdName

src/extraction/languages/c-cpp.ts:385–389  ·  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

383 * when the tree lacks one.
384 */
385function cppQualifiedIdName(qid: SyntaxNode): SyntaxNode | null {
386 let name: SyntaxNode | null = qid;
387 while (name?.type === 'qualified_identifier') name = getChildByField(name, 'name');
388 return name;
389}
390
391/**
392 * 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