pub fn validate_file( path: &Path, lang_hint: Option<Language>, ) -> Result<ValidationResult>
Validate syntax of a file.