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

Function cpp_qualified_id_name

codegraph-kernel/src/ccpp/mod.rs:2603–2609  ·  view source on GitHub ↗

cppQualifiedIdName (languages/c-cpp.ts): the name a `qualified_identifier` ends in, past its scopes. None when the tree lacks one.

(qid: Node)

Source from the content-addressed store, hash-verified

2601/// cppQualifiedIdName (languages/c-cpp.ts): the name a `qualified_identifier`
2602/// ends in, past its scopes. None when the tree lacks one.
2603fn cpp_qualified_id_name(qid: Node) -> Option<Node> {
2604 let mut name = qid;
2605 while name.kind() == "qualified_identifier" {
2606 name = name.child_by_field_name("name")?;
2607 }
2608 Some(name)
2609}
2610
2611/// findDeclaratorQualifiedId (languages/c-cpp.ts:13): BFS for the declarator's
2612/// `qualified_identifier`, skipping the parts that hold types or expressions

Callers 2

receiver_type_ofMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected