(&self, node: Node, kw: &str)
| 804 | } |
| 805 | |
| 806 | fn has_keyword_child(&self, node: Node, kw: &str) -> bool { |
| 807 | for i in 0..node.child_count() { |
| 808 | if let Some(c) = node.child(i) { |
| 809 | if c.kind() == kw { |
| 810 | return true; |
| 811 | } |
| 812 | } |
| 813 | } |
| 814 | false |
| 815 | } |
| 816 | |
| 817 | fn is_async(&self, node: Node) -> bool { |
| 818 | self.has_keyword_child(node, "async") |
no outgoing calls
no test coverage detected