tinymist_query::syntax

Function construct_module_dependencies

Source
pub fn construct_module_dependencies(
    ctx: &mut LocalContext,
) -> HashMap<TypstFileId, ModuleDependency>
Expand description

Construct the module dependencies of the given context.

It will scan all the files in the context, using LocalContext::source_files, and find the dependencies and dependents of each file.