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

Function cpp_qualified_id_name

codegraph-kernel/src/ccpp/mod.rs:2605–2611  ·  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

2603/// cppQualifiedIdName (languages/c-cpp.ts): the name a `qualified_identifier`
2604/// ends in, past its scopes. None when the tree lacks one.
2605fn cpp_qualified_id_name(qid: Node) -> Option<Node> {
2606 let mut name = qid;
2607 while name.kind() == "qualified_identifier" {
2608 name = name.child_by_field_name("name")?;
2609 }
2610 Some(name)
2611}
2612
2613/// findDeclaratorQualifiedId (languages/c-cpp.ts:13): BFS for the declarator's
2614/// `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