(mut node: Node<'_>)
| 65 | } |
| 66 | |
| 67 | fn tail(mut node: Node<'_>) -> Node<'_> { |
| 68 | loop { |
| 69 | if matches!( |
| 70 | node.kind(), |
| 71 | "block" |
| 72 | | "statement_block" |
| 73 | | "return_expression" |
| 74 | | "return_statement" |
| 75 | | "expression_statement" |
| 76 | | "parenthesized_expression" |
| 77 | ) { |
| 78 | if let Some(child) = code_children(node).last() { |
| 79 | node = *child; |
| 80 | continue; |
| 81 | } |
| 82 | } |
| 83 | return node; |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | pub(crate) fn inspect( |
| 88 | language: Language, |
no test coverage detected