Skip to main content

check_imports

Function check_imports 

Source
pub fn check_imports(
    program: &Program,
    text: &str,
) -> Result<(), Vec<Diagnostic>>
Expand description

Check a program’s imports are of files fic can read, by their extension (ForeignKind::of): the one place that rejects one. text is the program’s source, for the diagnostics.

§Errors

An import of a file fic cannot read, at the import.