(&self, node: Node, kw: &str)
| 1093 | } |
| 1094 | |
| 1095 | fn has_keyword_child(&self, node: Node, kw: &str) -> bool { |
| 1096 | for i in 0..node.child_count() { |
| 1097 | if let Some(c) = node.child(i) { |
| 1098 | if c.kind() == kw { |
| 1099 | return true; |
| 1100 | } |
| 1101 | } |
| 1102 | } |
| 1103 | false |
| 1104 | } |
| 1105 | |
| 1106 | fn is_async(&self, node: Node) -> bool { |
| 1107 | self.has_keyword_child(node, "async") |
no outgoing calls
no test coverage detected