ExecutionConditionRegistry.retained_leaf_selected_unpacked: def of bendvy-ecs-core@0.1.0.3 Import: import bendvy-ecs-core@0.1.0.3/execution_condition_registry.bend as ExecutionConditionRegistry Lines 28-31 of bendvy-ecs-core@0.1.0.3/execution_condition_registry.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.3/execution_condition_registry.bend&start_line=28&end_line=31 import Base import bendvy-ecs-core@0.1.0.3/world.bend as W import bendvy-ecs-core@0.1.0.3/execution_retained_system.bend as Retained import bendvy-ecs-core@0.1.0.3/execution_reservation_authority.bend as Effect import bendvy-ecs-core@0.1.0.3/execution_state_effect.bend as StateEffect import bendvy-ecs-core@0.1.0.3/execution_state.bend as State import bendvy-ecs-core@0.1.0.3/execution_system.bend as Sys 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/dependency_executor.bend as Exec def retained_leaf_selected_unpacked(~S:Data,~C:Type,~R:Type,~E:Data,~Ops:Data -> (Type -> Type) -> Type -> Type,~Local:Type,~Error:Data,~declaration:Build.FrameworkProgram(~S,~C,~C,~R,~Ops),~body:Sys.Body(~S,~Ops,~Local,~Error,~Bool),~caps:Ops(Effect.Granted,StateEffect.Transition(~State.Invocation),State.Scope),selected:Bool,node:D.Compilation & System(~S,~C,~R,~E,~Ops,~Local,~Error,~declaration,~body),world:W.World) -> RetainedSystem(~S,~C,~R,~E,~Ops,~Local,~Error,~declaration,~body) & (W.World & Exec.Invocation): match selected node: case False{} node:(Retained.pack_pair(D.Compilation,System(~S,~C,~R,~E,~Ops,~Local,~Error,~declaration,~body),node),(world,Exec.AdmissionRefused{})) case True{}, (compilation,owner):retained_leaf_returned(~S,~C,~R,~E,~Ops,~Local,~Error,~declaration,~body,Sys.run_retained_compilation(~S,~C,~R,~E,~Ops,~Local,~Error,~Bool,~declaration,~body,~caps,compilation,owner,world)) Uses (17): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/dependency_executor.bend&name=Invocation https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_builder.bend&name=FrameworkProgram https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_condition_registry.bend&name=RetainedSystem https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_condition_registry.bend&name=System https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_condition_registry.bend&name=retained_leaf_returned https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_declaration.bend&name=Compilation https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_reservation_authority.bend&name=Granted https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_retained_system.bend&name=pack_pair https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_state.bend&name=Invocation https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_state.bend&name=Scope https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_state_effect.bend&name=Transition https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_system.bend&name=Body https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_system.bend&name=run_retained_compilation https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/world.bend&name=World