TS has an isStatic hook; JS does not (None = field absent).
(&self, node: Node)
| 820 | |
| 821 | /// TS has an isStatic hook; JS does not (None = field absent). |
| 822 | fn is_static(&self, node: Node) -> Option<bool> { |
| 823 | if self.variant.is_ts() { |
| 824 | Some(self.has_keyword_child(node, "static")) |
| 825 | } else { |
| 826 | None |
| 827 | } |
| 828 | } |
| 829 | |
| 830 | fn is_const_decl(&self, node: Node) -> bool { |
| 831 | node.kind() == "lexical_declaration" && self.has_keyword_child(node, "const") |
no test coverage detected