execution_condition_registry.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.3/execution_condition_registry.bend as Execution_condition_registry
12 imports
import Base import ./world.bend as W import ./execution_retained_system.bend as Retained import ./execution_reservation_authority.bend as Effect import ./execution_state_effect.bend as StateEffect import ./execution_state.bend as State import ./execution_system.bend as Sys import ./execution_builder.bend as Build import ./execution_declaration.bend as D import ./dependency_registration.bend as Reg import ./dependency_plan.bend as Plan import ./dependency_executor.bend as Exec
Templates
template Dispatch source · line 14 · raw
@-World:Type -> @-Owners:Type -> @-Error:Data -> Type
template Registry source · line 16 · raw
@-World:Type -> @-Owners:Type -> @-Error:Data -> @-dispatch:Dispatch(World, Owners, Error) -> Type
template System source · line 18 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> Type) -> @-Local:Type -> @-Error:Data -> @-declaration:0x704c77730661eff4309838fc738ef615/execution_builder.FrameworkProgram(S, C, C, R, Ops) -> @-body:0x704c77730661eff4309838fc738ef615/execution_system.Body(S, Ops, Local, Error, Bool) -> Type
template RetainedSystem source · line 21 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> Type) -> @-Local:Type -> @-Error:Data -> @-declaration:0x704c77730661eff4309838fc738ef615/execution_builder.FrameworkProgram(S, C, C, R, Ops) -> @-body:0x704c77730661eff4309838fc738ef615/execution_system.Body(S, Ops, Local, Error, Bool) -> Type
template retained_leaf_returned source · line 23 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> Type) -> @-Local:Type -> @-Error:Data -> @-declaration:0x704c77730661eff4309838fc738ef615/execution_builder.FrameworkProgram(S, C, C, R, Ops) -> @-body:0x704c77730661eff4309838fc738ef615/execution_system.Body(S, Ops, Local, Error, Bool) -> @result:Pair(0x704c77730661eff4309838fc738ef615/execution_declaration.Compilation<S, C, C, R, Ops>, 0x704c77730661eff4309838fc738ef615/execution_system.RunResult<0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>, System(S, C, R, E, Ops, Local, Error, declaration, body), Error, Bool>) -> Pair(RetainedSystem(S, C, R, E, Ops, Local, Error, declaration, body), Pair(0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Bool>))
template retained_leaf_selected_unpacked source · line 28 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> Type) -> @-Local:Type -> @-Error:Data -> @-declaration:0x704c77730661eff4309838fc738ef615/execution_builder.FrameworkProgram(S, C, C, R, Ops) -> @-body:0x704c77730661eff4309838fc738ef615/execution_system.Body(S, Ops, Local, Error, Bool) -> @-caps:Ops(0x704c77730661eff4309838fc738ef615/execution_reservation_authority.Granted, 0x704c77730661eff4309838fc738ef615/execution_state_effect.Transition(0x704c77730661eff4309838fc738ef615/execution_state.Invocation<S>), 0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>) -> @selected:Bool -> @node:Pair(0x704c77730661eff4309838fc738ef615/execution_declaration.Compilation<S, C, C, R, Ops>, System(S, C, R, E, Ops, Local, Error, declaration, body)) -> @world:0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E> -> Pair(RetainedSystem(S, C, R, E, Ops, Local, Error, declaration, body), Pair(0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Bool>))
template retained_leaf_selected source · line 32 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> Type) -> @-Local:Type -> @-Error:Data -> @-declaration:0x704c77730661eff4309838fc738ef615/execution_builder.FrameworkProgram(S, C, C, R, Ops) -> @-body:0x704c77730661eff4309838fc738ef615/execution_system.Body(S, Ops, Local, Error, Bool) -> @-caps:Ops(0x704c77730661eff4309838fc738ef615/execution_reservation_authority.Granted, 0x704c77730661eff4309838fc738ef615/execution_state_effect.Transition(0x704c77730661eff4309838fc738ef615/execution_state.Invocation<S>), 0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>) -> @selected:Bool -> @node:RetainedSystem(S, C, R, E, Ops, Local, Error, declaration, body) -> @world:0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E> -> Pair(RetainedSystem(S, C, R, E, Ops, Local, Error, declaration, body), Pair(0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Bool>))
template retained_leaf_dispatch_unpacked source · line 34 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> Type) -> @-Local:Type -> @-Error:Data -> @-declaration:0x704c77730661eff4309838fc738ef615/execution_builder.FrameworkProgram(S, C, C, R, Ops) -> @-body:0x704c77730661eff4309838fc738ef615/execution_system.Body(S, Ops, Local, Error, Bool) -> @-construction:0x704c77730661eff4309838fc738ef615/execution_declaration.Compilation<S, C, C, R, Ops> -> @node:Pair(0x704c77730661eff4309838fc738ef615/execution_declaration.Compilation<S, C, C, R, Ops>, System(S, C, R, E, Ops, Local, Error, declaration, body)) -> @world:0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E> -> @id:U32 -> Pair(RetainedSystem(S, C, R, E, Ops, Local, Error, declaration, body), Pair(0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Bool>))
template retained_leaf_dispatch source · line 37 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> Type) -> @-Local:Type -> @-Error:Data -> @-declaration:0x704c77730661eff4309838fc738ef615/execution_builder.FrameworkProgram(S, C, C, R, Ops) -> @-body:0x704c77730661eff4309838fc738ef615/execution_system.Body(S, Ops, Local, Error, Bool) -> @-construction:0x704c77730661eff4309838fc738ef615/execution_declaration.Compilation<S, C, C, R, Ops> -> @node:RetainedSystem(S, C, R, E, Ops, Local, Error, declaration, body) -> @world:0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E> -> @id:U32 -> Pair(RetainedSystem(S, C, R, E, Ops, Local, Error, declaration, body), Pair(0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Bool>))
template compile_retained_leaf_unpacked source · line 39 · raw
@-Error:Data -> @-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> Type) -> @-Local:Type -> @-declaration:0x704c77730661eff4309838fc738ef615/execution_builder.FrameworkProgram(S, C, C, R, Ops) -> @-body:0x704c77730661eff4309838fc738ef615/execution_system.Body(S, Ops, Local, Error, Bool) -> @-construction:0x704c77730661eff4309838fc738ef615/execution_declaration.Compilation<S, C, C, R, Ops> -> @node:Pair(0x704c77730661eff4309838fc738ef615/execution_declaration.Compilation<S, C, C, R, Ops>, System(S, C, R, E, Ops, Local, Error, declaration, body)) -> Registry(0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>, RetainedSystem(S, C, R, E, Ops, Local, Error, declaration, body), Error, retained_leaf_dispatch(S, C, R, E, Ops, Local, Error, declaration, body, construction))
template compile_retained_leaf source · line 43 · raw
@-Error:Data -> @-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> Type) -> @-Local:Type -> @-declaration:0x704c77730661eff4309838fc738ef615/execution_builder.FrameworkProgram(S, C, C, R, Ops) -> @-body:0x704c77730661eff4309838fc738ef615/execution_system.Body(S, Ops, Local, Error, Bool) -> @-construction:0x704c77730661eff4309838fc738ef615/execution_declaration.Compilation<S, C, C, R, Ops> -> @node:RetainedSystem(S, C, R, E, Ops, Local, Error, declaration, body) -> Registry(0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>, RetainedSystem(S, C, R, E, Ops, Local, Error, declaration, body), Error, retained_leaf_dispatch(S, C, R, E, Ops, Local, Error, declaration, body, construction))
template compile_join source · line 45 · raw
@-Error:Data -> @-World:Type -> @-L:Type -> @-R:Type -> @-left:Dispatch(World, L, Error) -> @-right:Dispatch(World, R, Error) -> @l:Registry(World, L, Error, left) -> @r:Registry(World, R, Error, right) -> Registry(World, 0x704c77730661eff4309838fc738ef615/dependency_registration.Product<L, R>, Error, 0x704c77730661eff4309838fc738ef615/dependency_registration.paired_dispatch(World, L, R, Error, Bool, left, right))
template compile_empty source · line 47 · raw
@-Error:Data -> @-World:Type -> Registry(World, Unit, Error, 0x704c77730661eff4309838fc738ef615/dependency_registration.empty_dispatch(World, Error, Bool))
template Family source · line 50 · raw
@-Error:Data -> Type
template Leaf source · line 52 · raw
@-Error:Data -> @-F:Family(Error) -> Type
template Join source · line 54 · raw
@-Error:Data -> @-F:Family(Error) -> Type
template Vacant source · line 56 · raw
@-Error:Data -> @-F:Family(Error) -> Type
template Selection source · line 58 · raw
@-World:Type -> @-Owners:Type -> @-Error:Data -> @-dispatch:Dispatch(World, Owners, Error) -> Type
template Checked source · line 60 · raw
@-Error:Data -> @-World:Type -> @-Owners:Type -> @-dispatch:Dispatch(World, Owners, Error) -> Type
template compile source · line 62 · raw
@-World:Type -> @-Owners:Type -> @-Error:Data -> @-dispatch:Dispatch(World, Owners, Error) -> @-selection:Selection(World, Owners, Error, dispatch) -> @owners:Owners -> Registry(World, Owners, Error, dispatch)
template leaf source · line 64 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> Type) -> @-Local:Type -> @-Error:Data -> @-declaration:0x704c77730661eff4309838fc738ef615/execution_builder.FrameworkProgram(S, C, C, R, Ops) -> @-body:0x704c77730661eff4309838fc738ef615/execution_system.Body(S, Ops, Local, Error, Bool) -> @-construction:0x704c77730661eff4309838fc738ef615/execution_declaration.Compilation<S, C, C, R, Ops> -> @-F:Family(Error) -> @-leaf:Leaf(Error, F) -> @-pair:Join(Error, F) -> @-empty:Vacant(Error, F) -> @node:RetainedSystem(S, C, R, E, Ops, Local, Error, declaration, body) -> F(0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>, RetainedSystem(S, C, R, E, Ops, Local, Error, declaration, body), retained_leaf_dispatch(S, C, R, E, Ops, Local, Error, declaration, body, construction))
template paired source · line 66 · raw
@-World:Type -> @-L:Type -> @-R:Type -> @-Error:Data -> @-left:Dispatch(World, L, Error) -> @-right:Dispatch(World, R, Error) -> @-leftSelection:Selection(World, L, Error, left) -> @-rightSelection:Selection(World, R, Error, right) -> @-F:Family(Error) -> @-leaf:Leaf(Error, F) -> @-pair:Join(Error, F) -> @-empty:Vacant(Error, F) -> @owners:0x704c77730661eff4309838fc738ef615/dependency_registration.Product<L, R> -> F(World, 0x704c77730661eff4309838fc738ef615/dependency_registration.Product<L, R>, 0x704c77730661eff4309838fc738ef615/dependency_registration.paired_dispatch(World, L, R, Error, Bool, left, right))
template empty source · line 69 · raw
@-World:Type -> @-Error:Data -> @-F:Family(Error) -> @-leaf:Leaf(Error, F) -> @-pair:Join(Error, F) -> @-empty:Vacant(Error, F) -> @_:Unit -> F(World, Unit, 0x704c77730661eff4309838fc738ef615/dependency_registration.empty_dispatch(World, Error, Bool))