MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / extensions

Method extensions

atomic-semantic/src/parsers/mod.rs:134–146  ·  view source on GitHub ↗

Returns the file extensions associated with this language.

(&self)

Source from the content-addressed store, hash-verified

132
133 /// Returns the file extensions associated with this language.
134 pub fn extensions(&self) -> &'static [&'static str] {
135 match self {
136 Language::TypeScript => &[".ts", ".mts", ".cts"],
137 Language::Tsx => &[".tsx"],
138 Language::Python => &[".py", ".pyi"],
139 Language::Rust => &[".rs"],
140 Language::Go => &[".go"],
141 Language::Java => &[".java"],
142 Language::Cpp => &[".cpp", ".cc", ".cxx", ".hpp", ".hxx", ".h"],
143 Language::C => &[".c"],
144 Language::Swift => &[".swift"],
145 }
146 }
147}
148
149impl fmt::Display for Language {

Callers 2

sandbox_callerMethod · 0.80
local_onlyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected