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

Method is_misparsed_function

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

1049
1050 /// cppExtractor.isMisparsedFunction (languages/c-cpp.ts:811). cpp only.
1051 fn is_misparsed_function(&self, name: &str, node: Node) -> bool {
1052 if self.variant != Variant::Cpp {
1053 return false;
1054 }
1055 if name.starts_with("namespace") {
1056 return true;
1057 }
1058 if matches!(name, "switch" | "if" | "for" | "while" | "do" | "case" | "return") {
1059 return true;
1060 }
1061 is_macro_misparsed_type_decl(node)
1062 }
1063
1064 /// composeReceiverQualifiedName (tree-sitter.ts:1424).
1065 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