(n: Node<'t>, depth: u32, out: &mut Vec<Node<'t>>)
| 1613 | fn extract_ts_tuple_contract_names(&mut self, value: Node<'t>, alias_row: u32, alias_name: &str) { |
| 1614 | let mut tuples: Vec<Node> = Vec::new(); |
| 1615 | fn collect<'t>(n: Node<'t>, depth: u32, out: &mut Vec<Node<'t>>) { |
| 1616 | stack_guard!(); |
| 1617 | if depth > 6 { |
| 1618 | return; |
| 1619 | } |
| 1620 | if n.kind() == "tuple_type" { |
| 1621 | out.push(n); |
| 1622 | } |
| 1623 | for c in n.named_children(&mut n.walk()) { |
| 1624 | collect(c, depth + 1, out); |
| 1625 | } |
| 1626 | } |
| 1627 | collect(value, 0, &mut tuples); |
| 1628 | if tuples.is_empty() { |
| 1629 | return; |
no test coverage detected