cExtractor.isConst: any named `type_qualifier` child reading "const".
(&self, node: Node)
| 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 { |