isExported: walk the parent chain for an export_statement.
(&self, node: Node)
| 793 | |
| 794 | /// isExported: walk the parent chain for an export_statement. |
| 795 | fn is_exported(&self, node: Node) -> bool { |
| 796 | let mut cur = node.parent(); |
| 797 | while let Some(p) = cur { |
| 798 | if p.kind() == "export_statement" { |
| 799 | return true; |
| 800 | } |
| 801 | cur = p.parent(); |
| 802 | } |
| 803 | false |
| 804 | } |
| 805 | |
| 806 | fn has_keyword_child(&self, node: Node, kw: &str) -> bool { |
| 807 | for i in 0..node.child_count() { |
no outgoing calls
no test coverage detected