pub async fn load_root_file(
path: &Path,
source_path: &Path,
source_code: String,
diagnostics: BuildDiagnostics,
compiler_config: CompilerConfiguration,
) -> (PathBuf, BuildDiagnostics, TypeLoader)
Expand description
Pass a file to the compiler and process it fully, applying all the necessary compilation passes.
This returns a Tuple
containing the actual cleaned path
to the file,
a set of BuildDiagnostics
and a TypeLoader
with all compilation passes applied.