(n: Node<'t>, depth: u32, out: &mut Vec<Node<'t>>)
| 1451 | fn extract_ts_tuple_contract_names(&mut self, value: Node<'t>, alias_row: u32, alias_name: &str) { |
| 1452 | let mut tuples: Vec<Node> = Vec::new(); |
| 1453 | fn collect<'t>(n: Node<'t>, depth: u32, out: &mut Vec<Node<'t>>) { |
| 1454 | stack_guard!(); |
| 1455 | if depth > 6 { |
| 1456 | return; |
| 1457 | } |
| 1458 | if n.kind() == "tuple_type" { |
| 1459 | out.push(n); |
| 1460 | } |
| 1461 | for i in 0..n.named_child_count() { |
| 1462 | if let Some(c) = n.named_child(i) { |
| 1463 | collect(c, depth + 1, out); |
| 1464 | } |
| 1465 | } |
| 1466 | } |
| 1467 | collect(value, 0, &mut tuples); |
| 1468 | if tuples.is_empty() { |
| 1469 | return; |
no test coverage detected