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