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

Method is_misparsed_function

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

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