(mut node: Node<'_>)
| 163 | } |
| 164 | |
| 165 | fn lexical_container(mut node: Node<'_>) -> Node<'_> { |
| 166 | while let Some(parent) = node.parent() { |
| 167 | if matches!( |
| 168 | parent.kind(), |
| 169 | "block" |
| 170 | | "statement_block" |
| 171 | | "source_file" |
| 172 | | "program" |
| 173 | | "declaration_list" |
| 174 | | "class_body" |
| 175 | ) { |
| 176 | return parent; |
| 177 | } |
| 178 | node = parent; |
| 179 | } |
| 180 | node |
| 181 | } |
| 182 | |
| 183 | fn parameters(mut node: Node<'_>) -> Option<Node<'_>> { |
| 184 | for _ in 0..16 { |
no test coverage detected