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

Method is_supported

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

Check if a file path is supported.

(&self, path: &str)

Source from the content-addressed store, hash-verified

272
273 /// Check if a file path is supported.
274 pub fn is_supported(&self, path: &str) -> bool {
275 Language::detect(path)
276 .map(|lang| self.parsers.contains_key(&lang))
277 .unwrap_or(false)
278 }
279
280 /// Detect the language for a file path.
281 pub fn detect_language(&self, path: &str) -> Option<Language> {

Callers 1

projectFunction · 0.80

Calls 1

contains_keyMethod · 0.80

Tested by

no test coverage detected