Function import_graph

Source
pub fn import_graph(
    progs: &HashMap<String, (Node<ImportStatement>, ModuleId, ModulePath, ModuleRepr)>,
    ctx: &ExecutorContext,
) -> Result<Vec<Vec<String>>, KclError>
Expand description

Process a number of programs, returning the graph of dependencies.

This will (currently) return a list of lists of IDs that can be safely run concurrently. Each “stage” is blocking in this model, which will change in the future. Don’t use this function widely, yet.