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