(&self, node: Node<'t>, kind: &str)
| 1561 | } |
| 1562 | |
| 1563 | fn find_child_by_kind(&self, node: Node<'t>, kind: &str) -> Option<Node<'t>> { |
| 1564 | (0..node.named_child_count()) |
| 1565 | .filter_map(|i| node.named_child(i)) |
| 1566 | .find(|c| c.kind() == kind) |
| 1567 | } |
| 1568 | |
| 1569 | /// extractVariable: C takes the dedicated branch (file-scope declarators, |
| 1570 | /// tree-sitter.ts:2795); cpp takes the TS GENERIC fallback (direct |
no outgoing calls
no test coverage detected