(n: Node<'t>, depth: u32, out: &mut Vec<Node<'t>>)
| 2000 | fn extract_ts_tuple_contract_names(&mut self, value: Node<'t>, alias_row: u32, alias_name: &str) { |
| 2001 | let mut tuples: Vec<Node> = Vec::new(); |
| 2002 | fn collect<'t>(n: Node<'t>, depth: u32, out: &mut Vec<Node<'t>>) { |
| 2003 | stack_guard!(); |
| 2004 | if depth > 6 { |
| 2005 | return; |
| 2006 | } |
| 2007 | if n.kind() == "tuple_type" { |
| 2008 | out.push(n); |
| 2009 | } |
| 2010 | for c in n.named_children(&mut n.walk()) { |
| 2011 | collect(c, depth + 1, out); |
| 2012 | } |
| 2013 | } |
| 2014 | collect(value, 0, &mut tuples); |
| 2015 | if tuples.is_empty() { |
| 2016 | return; |
no test coverage detected