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

Method is_misparsed_function

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

1059
1060 /// cppExtractor.isMisparsedFunction (languages/c-cpp.ts:811). cpp only.
1061 fn is_misparsed_function(&self, name: &str, node: Node) -> bool {
1062 if self.variant != Variant::Cpp {
1063 return false;
1064 }
1065 if name.starts_with("namespace") {
1066 return true;
1067 }
1068 if matches!(name, "switch" | "if" | "for" | "while" | "do" | "case" | "return") {
1069 return true;
1070 }
1071 is_macro_misparsed_type_decl(node)
1072 }
1073
1074 /// composeReceiverQualifiedName (tree-sitter.ts:1424).
1075 fn compose_receiver_qualified_name(&self, receiver_type: &str, name: &str) -> String {

Callers 2

extract_functionMethod · 0.45
extract_methodMethod · 0.45

Calls 1

Tested by

no test coverage detected