Skip to main content

detect_language_from_source

Function detect_language_from_source 

Source
pub fn detect_language_from_source(path: &Path, source: &str) -> Option<LangId>
Expand description

Detect against the caller’s source snapshot rather than reopening the file.