relation_reorder.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.6/relation_reorder.bend as Relation_reorder
11 imports
import Base import ./trace_relation.bend as TraceRel import ./deferred_command.bend as Deferred import ./trace_facts.bend as TraceFacts import entity_key.bend as Key import relation_types.bend as G import relation_reorder_core.bend as C import relation_commands.bend as A import world.bend as W import transaction.bend as X import capabilities.bend as Cap
Types
type Args source · line 13 · raw
@S:Data -> Data
Args@S:Data -> @parent:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @children:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S>> -> Args<S>
type Writable source · line 15 · raw
@H:Type -> @S:Data -> Type
Writable@H:Type -> @S:Data -> @reorder:0x14a72e1c180a5ab1f8a056d43822425c/capabilities.Request<H, Args<S>, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.QueueStatus> -> Writable<H, S>
Definitions
def error_target source · line 23 · raw
@error:0x14a72e1c180a5ab1f8a056d43822425c/relation_types.Error -> @parent:0x14a72e1c180a5ab1f8a056d43822425c/entity_key.Key -> 0x14a72e1c180a5ab1f8a056d43822425c/entity_key.Key
Templates
template descriptor source · line 17 · raw
@-S:Data -> @value:0x14a72e1c180a5ab1f8a056d43822425c/relation_types.HierarchyDescriptor<S> -> 0x14a72e1c180a5ab1f8a056d43822425c/relation_types.Descriptor<S>
template store_reorder source · line 20 · raw
@-S:Data -> @-C:Type -> @store:0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C> -> @d:0x14a72e1c180a5ab1f8a056d43822425c/relation_types.Descriptor<S> -> @parent:0x14a72e1c180a5ab1f8a056d43822425c/entity_key.Key -> @children:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_types.ChildStatus> -> @parentLive:Bool -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_types.Error>)
template publish source · line 29 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>, Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_types.Error>) -> @d:0x14a72e1c180a5ab1f8a056d43822425c/relation_types.Descriptor<S> -> @+parent:0x14a72e1c180a5ab1f8a056d43822425c/entity_key.Key -> 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>
template children_prepend source · line 33 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @result:Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_types.ChildStatus>) -> @id:0x14a72e1c180a5ab1f8a056d43822425c/entity_key.Key -> @live:Bool -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_types.ChildStatus>)
template child_next source · line 36 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @checked:Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>, Bool) -> @id:0x14a72e1c180a5ab1f8a056d43822425c/entity_key.Key -> @next:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_types.ChildStatus>)) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_types.ChildStatus>)
template child_statuses source · line 39 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @children:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S>> -> @world:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_types.ChildStatus>)
template apply_children_result source · line 43 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_types.ChildStatus>) -> @+d:0x14a72e1c180a5ab1f8a056d43822425c/relation_types.Descriptor<S> -> @+parent:0x14a72e1c180a5ab1f8a056d43822425c/entity_key.Key -> @parentLive:Bool -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>, Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_types.Error>)
template apply_parent_result source · line 46 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @checked:Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>, Bool) -> @d:0x14a72e1c180a5ab1f8a056d43822425c/relation_types.Descriptor<S> -> @parent:0x14a72e1c180a5ab1f8a056d43822425c/entity_key.Key -> @children:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S>> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>, Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_types.Error>)
template apply_result source · line 49 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-d:0x14a72e1c180a5ab1f8a056d43822425c/relation_types.HierarchyDescriptor<S> -> @world:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>> -> @args:Args<S> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>, Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_types.Error>)
template apply_published source · line 52 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-d:0x14a72e1c180a5ab1f8a056d43822425c/relation_types.HierarchyDescriptor<S> -> @args:Args<S> -> @result:Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>, Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_types.Error>) -> 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>
template apply_traced source · line 55 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-d:0x14a72e1c180a5ab1f8a056d43822425c/relation_types.HierarchyDescriptor<S> -> @trace:0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State -> @args:Args<S> -> @result:Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>, Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_types.Error>) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>, 0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State)
template apply source · line 58 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-d:0x14a72e1c180a5ab1f8a056d43822425c/relation_types.HierarchyDescriptor<S> -> @world:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>> -> @+args:Args<S> -> 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>
template namespaces source · line 60 · raw
@-S:Data -> @children:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S>> -> @+namespace:U32 -> Bool
template same_world source · line 64 · raw
@-S:Data -> @+args:Args<S> -> @+namespace:U32 -> Bool
template reorder_command source · line 67 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-d:0x14a72e1c180a5ab1f8a056d43822425c/relation_types.HierarchyDescriptor<S> -> @enabled:Bool -> @+args:Args<S> -> 0x14a72e1c180a5ab1f8a056d43822425c/deferred_command.Command<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>>
template reordered_stage source · line 71 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-d:0x14a72e1c180a5ab1f8a056d43822425c/relation_types.HierarchyDescriptor<S> -> @+args:Args<S> -> @result:0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.FactResult -> @tx:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>> -> 0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>
template reorder_staged source · line 74 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-d:0x14a72e1c180a5ab1f8a056d43822425c/relation_types.HierarchyDescriptor<S> -> @+args:Args<S> -> @tx:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>> -> 0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>
template queued source · line 77 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-d:0x14a72e1c180a5ab1f8a056d43822425c/relation_types.HierarchyDescriptor<S> -> @same:Bool -> @tx:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>> -> @args:Args<S> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.QueueStatus)
template namespace_join source · line 81 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-d:0x14a72e1c180a5ab1f8a056d43822425c/relation_types.HierarchyDescriptor<S> -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>, U32) -> @undo:List<&1, @_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>> -> 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>> -> @commands:List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/deferred_command.Command<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>>> -> @events:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>> -> @trace:0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State -> @+args:Args<S> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.QueueStatus)
template queue source · line 84 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-d:0x14a72e1c180a5ab1f8a056d43822425c/relation_types.HierarchyDescriptor<S> -> @tx:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>> -> @args:Args<S> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.QueueStatus)
template body source · line 87 · raw
@-S:Data -> @-H:Type -> @caps:Writable<H, S> -> @args:Args<S> -> @owner:H -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.QueueStatus)
template invoke source · line 90 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-d:0x14a72e1c180a5ab1f8a056d43822425c/relation_types.HierarchyDescriptor<S> -> @-Out:Type -> @-client:(@-H:Type -> @_:Writable<H, S> -> @_:Args<S> -> @_:H -> Pair(H, Out)) -> @args:Args<S> -> @tx:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>, Out)