(&self, node: Node, kw: &str)
| 1085 | } |
| 1086 | |
| 1087 | fn has_keyword_child(&self, node: Node, kw: &str) -> bool { |
| 1088 | for c in node.children(&mut node.walk()) { |
| 1089 | if c.kind() == kw { |
| 1090 | return true; |
| 1091 | } |
| 1092 | } |
| 1093 | false |
| 1094 | } |
| 1095 | |
| 1096 | fn is_async(&self, node: Node) -> bool { |
| 1097 | self.has_keyword_child(node, "async") |
no test coverage detected