(n: Node<'t>, depth: u32, out: &mut Vec<Node<'t>>)
| 873 | fn extract_ts_tuple_contract_names(&mut self, value: Node<'t>, alias_row: u32, alias_name: &str) { |
| 874 | let mut tuples: Vec<Node> = Vec::new(); |
| 875 | fn collect<'t>(n: Node<'t>, depth: u32, out: &mut Vec<Node<'t>>) { |
| 876 | if depth > 6 { |
| 877 | return; |
| 878 | } |
| 879 | if n.kind() == "tuple_type" { |
| 880 | out.push(n); |
| 881 | } |
| 882 | for i in 0..n.named_child_count() { |
| 883 | if let Some(c) = n.named_child(i) { |
| 884 | collect(c, depth + 1, out); |
| 885 | } |
| 886 | } |
| 887 | } |
| 888 | collect(value, 0, &mut tuples); |
| 889 | if tuples.is_empty() { |
| 890 | return; |
no test coverage detected