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

Method is_const_declaration

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

cExtractor.isConst: any named `type_qualifier` child reading "const".

(&self, node: Node)

Source from the content-addressed store, hash-verified

735
736 /// cExtractor.isConst: any named `type_qualifier` child reading "const".
737 fn is_const_declaration(&self, node: Node) -> bool {
738 (0..node.named_child_count())
739 .filter_map(|i| node.named_child(i))
740 .any(|c| c.kind() == "type_qualifier" && self.text(c) == "const")
741 }
742
743 /// cppExtractor.isMisparsedFunction (languages/c-cpp.ts:811). cpp only.
744 fn is_misparsed_function(&self, name: &str, node: Node) -> bool {

Callers 1

extract_variableMethod · 0.80

Calls 1

textMethod · 0.45

Tested by

no test coverage detected