MCPcopy Create free account
hub / github.com/douglance/devsql / ts_language

Method ts_language

crates/devsql/src/providers/tree_sitter.rs:57–68  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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.

Callers 2

parseMethod · 0.80
tree_sitter.rsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected