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

Method written_scope_qualified_name

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

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