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

Method written_scope_qualified_name

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

writtenScopeQualifiedName (tree-sitter.ts): a class whose name is written in a scope is qualified like an out-of-line method under it.

(&self, node: Node, name: &str)

Source from the content-addressed store, hash-verified

754 /// writtenScopeQualifiedName (tree-sitter.ts): a class whose name is
755 /// written in a scope is qualified like an out-of-line method under it.
756 fn written_scope_qualified_name(&self, node: Node, name: &str) -> Option<String> {
757 if self.variant != Variant::Cpp {
758 return None;
759 }
760 let parts = self.cpp_written_class_parts(node)?;
761 if parts.len() < 2 {
762 return None;
763 }
764 Some(self.compose_receiver_qualified_name(&parts[..parts.len() - 1].join("::"), name))
765 }
766
767 /// unnamedTypeVariableName (languages/c-cpp.ts): an unnamed class, struct,
768 /// union or enum defined in a declaration takes the name of the first

Callers 2

extract_classMethod · 0.80
extract_aggregateMethod · 0.80

Calls 4

lenMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected