def run_inspected
bendvy-ecs-core@0.1.0.3 · execution_generalized_system_leaf.bend:23
import bendvy-ecs-core@0.1.0.3/execution_generalized_system_leaf.bend as ExecutionGeneralizedSystemLeaf
import Base
import bendvy-ecs-core@0.1.0.3/execution_composer_layout.bend as L
import bendvy-ecs-core@0.1.0.3/execution_builder.bend as Build
import bendvy-ecs-core@0.1.0.3/execution_declaration.bend as D
import bendvy-ecs-core@0.1.0.3/execution_system.bend as Sys
import bendvy-ecs-core@0.1.0.3/execution_retained_system.bend as Retained
import bendvy-ecs-core@0.1.0.3/execution_resource_admission.bend as Admission
import bendvy-ecs-core@0.1.0.3/dependency_executor.bend as Exec
import bendvy-ecs-core@0.1.0.3/world.bend as W
23def run_inspected(~S:Data,~components:L.Layout,~resources:L.Layout,~E:Data,~Ops:Data -> (Type -> Type) -> Type -> Type,~Local:Type,~Error:Data,~Out:Data,~declaration:Build.FrameworkProgram(~S,~L.columns(~S,components),~L.columns(~S,components),~L.resources(~S,resources),~Ops),~body:Sys.Body(~S,~Ops,~Local,~Error,~Out),~construction:D.Compilation<S,L.columns(~S,components),L.columns(~S,components),L.resources(~S,resources),Ops>,owner:Sys.Owner<S,L.columns(~S,components),L.columns(~S,components),L.resources(~S,resources),E,Ops,Local,Error,Out,declaration,body>,inspected:Admission.Inspection<S,components,resources,L.columns(~S,components),L.resources(~S,resources),E,Ops,declaration>) -> Node(~S,~components,~resources,~E,~Ops,~Local,~Error,~Out,~declaration,~body) & (W.World<S,L.columns(~S,components),L.resources(~S,resources),E> & Exec.Invocation<Error,Out>):
24 match inspected:
25 case Admission.Refused{world,compilation}:(Retained.pack(D.Compilation<S,L.columns(~S,components),L.columns(~S,components),L.resources(~S,resources),Ops>,Sys.Owner<S,L.columns(~S,components),L.columns(~S,components),L.resources(~S,resources),E,Ops,Local,Error,Out,declaration,body>,compilation,owner),(world,Exec.AdmissionRefused{}))
26 case Admission.Admitted{world,compilation,_}:run_returned(~S,~components,~resources,~E,~Ops,~Local,~Error,~Out,~declaration,~body,Sys.run_retained_compilation(~S,~L.columns(~S,components),~L.resources(~S,resources),~E,~Ops,~Local,~Error,~Out,~declaration,~body,~D.trusted_construction_caps(~S,~L.columns(~S,components),~L.columns(~S,components),~L.resources(~S,resources),~Ops,construction),compilation,owner,world))