(&self, node: Node<'t>, kind: &str)
| 1105 | } |
| 1106 | |
| 1107 | fn find_child_by_kind(&self, node: Node<'t>, kind: &str) -> Option<Node<'t>> { |
| 1108 | (0..node.named_child_count()) |
| 1109 | .filter_map(|i| node.named_child(i)) |
| 1110 | .find(|c| c.kind() == kind) |
| 1111 | } |
| 1112 | |
| 1113 | /// extractVariable: C takes the dedicated branch (file-scope declarators, |
| 1114 | /// tree-sitter.ts:2795); cpp takes the TS GENERIC fallback (direct |
no outgoing calls
no test coverage detected