(n: Node<'t>, depth: u32, out: &mut Vec<Node<'t>>)
| 1589 | fn extract_ts_tuple_contract_names(&mut self, value: Node<'t>, alias_row: u32, alias_name: &str) { |
| 1590 | let mut tuples: Vec<Node> = Vec::new(); |
| 1591 | fn collect<'t>(n: Node<'t>, depth: u32, out: &mut Vec<Node<'t>>) { |
| 1592 | stack_guard!(); |
| 1593 | if depth > 6 { |
| 1594 | return; |
| 1595 | } |
| 1596 | if n.kind() == "tuple_type" { |
| 1597 | out.push(n); |
| 1598 | } |
| 1599 | for i in 0..n.named_child_count() { |
| 1600 | if let Some(c) = n.named_child(i) { |
| 1601 | collect(c, depth + 1, out); |
| 1602 | } |
| 1603 | } |
| 1604 | } |
| 1605 | collect(value, 0, &mut tuples); |
| 1606 | if tuples.is_empty() { |
| 1607 | return; |
no test coverage detected