(self)
| 55 | } |
| 56 | |
| 57 | pub fn ts_language(self) -> Language { |
| 58 | match self { |
| 59 | Self::Rust => tree_sitter_rust::LANGUAGE, |
| 60 | Self::TypeScript => tree_sitter_typescript::LANGUAGE_TYPESCRIPT, |
| 61 | Self::Tsx => tree_sitter_typescript::LANGUAGE_TSX, |
| 62 | Self::JavaScript => tree_sitter_javascript::LANGUAGE, |
| 63 | Self::Jsx => tree_sitter_javascript::LANGUAGE, |
| 64 | Self::Python => tree_sitter_python::LANGUAGE, |
| 65 | Self::Go => tree_sitter_go::LANGUAGE, |
| 66 | } |
| 67 | .into() |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | /// Return true if the AST node kind should be materialized. |
no outgoing calls
no test coverage detected