(node: Node<'_>)
| 130 | } |
| 131 | |
| 132 | fn callable(node: Node<'_>) -> bool { |
| 133 | matches!( |
| 134 | node.kind(), |
| 135 | "function_item" |
| 136 | | "function_declaration" |
| 137 | | "function_definition" |
| 138 | | "method_definition" |
| 139 | | "method_declaration" |
| 140 | | "constructor_declaration" |
| 141 | | "init_declaration" |
| 142 | ) |
| 143 | } |
| 144 | |
| 145 | fn enclosing_callable(mut node: Node<'_>) -> Option<Node<'_>> { |
| 146 | while let Some(parent) = node.parent() { |
no outgoing calls
no test coverage detected