(&self, node: Node, kw: &str)
| 1199 | } |
| 1200 | |
| 1201 | fn has_keyword_child(&self, node: Node, kw: &str) -> bool { |
| 1202 | for c in node.children(&mut node.walk()) { |
| 1203 | if c.kind() == kw { |
| 1204 | return true; |
| 1205 | } |
| 1206 | } |
| 1207 | false |
| 1208 | } |
| 1209 | |
| 1210 | fn is_async(&self, node: Node) -> bool { |
| 1211 | self.has_keyword_child(node, "async") |
no test coverage detected