hierarchy_traversal_provider.bend checks
raw source on the hub · import 0x67fd5084c1da4adc13317822045bb11f/hierarchy_traversal_provider.bend as Hierarchy_traversal_provider
9 imports
import Base import entity_key.bend as Key import ./relation_types.bend as G import ./relation_commands.bend as A import ./relation_reorder.bend as Reorder import ./world.bend as W import ./capabilities.bend as Cap import ./hierarchy_traversal.bend as T import ./hierarchy_provider.bend as P
Types
type Descendants source · line 13 · raw
@S:Data -> Data
Separate traversal requests avoid computing unrelated snapshot fields. Descriptor and World remain hidden by the same rank-two authority boundary.
Descendants@S:Data -> @entity:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> @order:0x67fd5084c1da4adc13317822045bb11f/hierarchy_traversal.Order -> Descendants<S>
type Read source · line 15 · raw
@H:Type -> @S:Data -> Type
Read@H:Type -> @S:Data -> @root:0x67fd5084c1da4adc13317822045bb11f/capabilities.Request<H, 0x67fd5084c1da4adc13317822045bb11f/world.Handle<S>, Maybe<&2, 0x67fd5084c1da4adc13317822045bb11f/world.Handle<S>>> -> @ancestors:0x67fd5084c1da4adc13317822045bb11f/capabilities.Request<H, 0x67fd5084c1da4adc13317822045bb11f/world.Handle<S>, Maybe<&2, 0x67fd5084c1da4adc13317822045bb11f/hierarchy_provider.Path<S>>> -> @descendants:0x67fd5084c1da4adc13317822045bb11f/capabilities.Request<H, Descendants<S>, Maybe<&2, 0x67fd5084c1da4adc13317822045bb11f/hierarchy_provider.Path<S>>> -> Read<H, S>
type Selection source · line 17 · raw
Data
AncestorsSelection
DescendantOrder@order:0x67fd5084c1da4adc13317822045bb11f/hierarchy_traversal.Order -> Selection
Definitions
def root source · line 52 · raw
@-H:Type -> @-S:Data -> @caps:Read<H, S> -> @owner:H -> @target:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> Pair(H, Maybe<&2, 0x67fd5084c1da4adc13317822045bb11f/world.Handle<S>>)
def ancestors source · line 55 · raw
@-H:Type -> @-S:Data -> @caps:Read<H, S> -> @owner:H -> @target:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> Pair(H, Maybe<&2, 0x67fd5084c1da4adc13317822045bb11f/hierarchy_provider.Path<S>>)
def descendants source · line 58 · raw
@-H:Type -> @-S:Data -> @caps:Read<H, S> -> @owner:H -> @target:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> @order:0x67fd5084c1da4adc13317822045bb11f/hierarchy_traversal.Order -> Pair(H, Maybe<&2, 0x67fd5084c1da4adc13317822045bb11f/hierarchy_provider.Path<S>>)
Templates
template selected source · line 20 · raw
@-S:Data -> @graph:0x67fd5084c1da4adc13317822045bb11f/relation_types.Graph<S> -> @descriptor:0x67fd5084c1da4adc13317822045bb11f/relation_types.Descriptor<S> -> @id:0x67fd5084c1da4adc13317822045bb11f/entity_key.Key -> @selection:Selection -> 0x67fd5084c1da4adc13317822045bb11f/hierarchy_traversal.Walk
template store_path source · line 24 · raw
@-S:Data -> @-C:Type -> @store:0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C> -> @descriptor:0x67fd5084c1da4adc13317822045bb11f/relation_types.Descriptor<S> -> @target:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> @selection:Selection -> Pair(0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, 0x67fd5084c1da4adc13317822045bb11f/hierarchy_provider.Path<S>)
template present_path source · line 27 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @result:Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>>, 0x67fd5084c1da4adc13317822045bb11f/hierarchy_provider.Path<S>) -> Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>>, Maybe<&2, 0x67fd5084c1da4adc13317822045bb11f/hierarchy_provider.Path<S>>)
template checked_path source · line 30 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-descriptor:0x67fd5084c1da4adc13317822045bb11f/relation_types.HierarchyDescriptor<S> -> @observed:Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>>, Bool) -> @target:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> @selection:Selection -> Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>>, Maybe<&2, 0x67fd5084c1da4adc13317822045bb11f/hierarchy_provider.Path<S>>)
template lookup_path source · line 34 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-descriptor:0x67fd5084c1da4adc13317822045bb11f/relation_types.HierarchyDescriptor<S> -> @world:0x67fd5084c1da4adc13317822045bb11f/world.World<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>> -> @target:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> @selection:Selection -> Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>>, Maybe<&2, 0x67fd5084c1da4adc13317822045bb11f/hierarchy_provider.Path<S>>)
template lookup_ancestors source · line 37 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-descriptor:0x67fd5084c1da4adc13317822045bb11f/relation_types.HierarchyDescriptor<S> -> @world:0x67fd5084c1da4adc13317822045bb11f/world.World<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>> -> @target:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>>, Maybe<&2, 0x67fd5084c1da4adc13317822045bb11f/hierarchy_provider.Path<S>>)
template lookup_descendants source · line 39 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-descriptor:0x67fd5084c1da4adc13317822045bb11f/relation_types.HierarchyDescriptor<S> -> @world:0x67fd5084c1da4adc13317822045bb11f/world.World<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>> -> @request:Descendants<S> -> Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>>, Maybe<&2, 0x67fd5084c1da4adc13317822045bb11f/hierarchy_provider.Path<S>>)
template store_root source · line 42 · raw
@-S:Data -> @-C:Type -> @store:0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C> -> @descriptor:0x67fd5084c1da4adc13317822045bb11f/relation_types.Descriptor<S> -> @target:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> Pair(0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, Maybe<&2, 0x67fd5084c1da4adc13317822045bb11f/world.Handle<S>>)
template checked_root source · line 45 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-descriptor:0x67fd5084c1da4adc13317822045bb11f/relation_types.HierarchyDescriptor<S> -> @observed:Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>>, Bool) -> @target:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>>, Maybe<&2, 0x67fd5084c1da4adc13317822045bb11f/world.Handle<S>>)
template lookup_root source · line 49 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-descriptor:0x67fd5084c1da4adc13317822045bb11f/relation_types.HierarchyDescriptor<S> -> @world:0x67fd5084c1da4adc13317822045bb11f/world.World<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>> -> @target:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>>, Maybe<&2, 0x67fd5084c1da4adc13317822045bb11f/world.Handle<S>>)
template grant source · line 61 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-descriptor:0x67fd5084c1da4adc13317822045bb11f/relation_types.HierarchyDescriptor<S> -> @-Out:Type -> @-body:(@-H:Type -> @_:Read<H, S> -> @_:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> @_:H -> Pair(H, Out)) -> @target:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> @world:0x67fd5084c1da4adc13317822045bb11f/world.World<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>> -> Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>>, Out)