issie


DependencyMerger

Namespace: global

Functions and values

Function or valueDescription
mergeDependencies(...)
Signature: currDiagramName:string -> graph:SimulationGraph -> (Component list * Connection list) -> loadedDependencies:LoadedComponent list -> Result<SimulationGraph,SimulationError>

Try to resolve all the dependencies in a graph, and replace the reducer of the custom components with a simulationgraph. Return an error if there are problems with the dependencies. For example, if the graph of an ALU refers to custom component such as adders, replace them with the actual simulation graph for the adders.