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

Method is_misparsed_function

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

cppExtractor.isMisparsedFunction (languages/c-cpp.ts:811). cpp only.

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

Source from the content-addressed store, hash-verified

742
743 /// cppExtractor.isMisparsedFunction (languages/c-cpp.ts:811). cpp only.
744 fn is_misparsed_function(&self, name: &str, node: Node) -> bool {
745 if self.variant != Variant::Cpp {
746 return false;
747 }
748 if name.starts_with("namespace") {
749 return true;
750 }
751 if matches!(name, "switch" | "if" | "for" | "while" | "do" | "case" | "return") {
752 return true;
753 }
754 is_macro_misparsed_type_decl(node)
755 }
756
757 /// composeReceiverQualifiedName (tree-sitter.ts:1424).
758 fn compose_receiver_qualified_name(&self, receiver_type: &str, name: &str) -> String {

Callers 2

extract_functionMethod · 0.80
extract_methodMethod · 0.80

Calls 1

Tested by

no test coverage detected