ordinary_check_declaration.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.5/ordinary_check_declaration.bend as Ordinary_check_declaration
8 imports
import Base import ./world.bend as W import ./check.bend as K import ./capabilities.bend as Cap import ./ordinary_schema.bend as Schema import ./ordinary_optional_resource.bend as O import ./optional_resource_binding.bend as B import ./owner_product.bend as Product
Types
type ComponentSelection source · line 11 · raw
Data
Metadata belongs to the same operational read; no caller-authored access list.
RequiredComponentSelection
OptionalComponentSelection
WithComponentSelection
WithoutComponentSelection
type RelationKind source · line 16 · raw
Data
OrdinaryRelationKind
HierarchyRelationKind
type RelationDirection source · line 19 · raw
Data
OutgoingRelationDirection
IncomingRelationDirection
type RelationSelection source · line 22 · raw
Data
RelationRequiredRelationSelection
RelationOptionalRelationSelection
RelationPresentRelationSelection
RelationAbsentRelationSelection
type RelationIdentity source · line 27 · raw
Data
RelationIdentity@id:U32 -> @name:String -> @inverseName:String -> @kind:RelationKind -> RelationIdentity
type Category source · line 29 · raw
Data
ResourceCategory
Component@selection:ComponentSelection -> Category
MachineCategory
Relation@identity:RelationIdentity -> @direction:RelationDirection -> @selection:RelationSelection -> @cellKey:Maybe<&2, String> -> Category
type Mode source · line 34 · raw
Data
ReadMode
type Use source · line 35 · raw
Data
Use@category:Category -> @key:String -> @mode:Mode -> @required:Bool -> Use
type Declaration source · line 36 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Type -> Type) -> Type
Declaration@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Type -> Type) -> @plan:0x2a0aaf4f2cb3f416a9b91fd887916a5d/check.Plan<S, C, R, E, Ops> -> @uses:List<&2, Use> -> Declaration<S, C, R, E, Ops>
type ResourceRead source · line 38 · raw
@-S:Data -> @-P:Type -> @-identity:0x2a0aaf4f2cb3f416a9b91fd887916a5d/ordinary_schema.Resource<S, P> -> @-H:Type -> @-V:Data -> Type
ResourceRead@-S:Data -> @-P:Type -> @-identity:0x2a0aaf4f2cb3f416a9b91fd887916a5d/ordinary_schema.Resource<S, P> -> @-H:Type -> @-V:Data -> @read:0x2a0aaf4f2cb3f416a9b91fd887916a5d/capabilities.ValueRead<H, Maybe<&2, V>> -> ResourceRead<S, P, identity, H, V>
Templates
template Ops source · line 40 · raw
@-S:Data -> @-P:Type -> @-identity:0x2a0aaf4f2cb3f416a9b91fd887916a5d/ordinary_schema.Resource<S, P> -> @-V:Data -> @H:Type -> Type
template read_field source · line 41 · raw
@-S:Data -> @-P:Type -> @-identity:0x2a0aaf4f2cb3f416a9b91fd887916a5d/ordinary_schema.Resource<S, P> -> @-H:Type -> @-V:Data -> @value:ResourceRead<S, P, identity, H, V> -> @_:H -> Pair(H, Maybe<&2, V>)
template read source · line 44 · raw
@-S:Data -> @-P:Type -> @-identity:0x2a0aaf4f2cb3f416a9b91fd887916a5d/ordinary_schema.Resource<S, P> -> @-H:Type -> @-V:Data -> @-value:ResourceRead<S, P, identity, H, V> -> @owner:H -> Pair(H, Maybe<&2, V>)
template provided source · line 46 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @world:0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.World<S, C, R, E> -> Pair(0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.World<S, C, R, E>, List<&2, String>)
template optional_resource source · line 47 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-Rest:Type -> @-V:Data -> @-identity:0x2a0aaf4f2cb3f416a9b91fd887916a5d/ordinary_schema.Resource<S, P> -> @-lens:0x2a0aaf4f2cb3f416a9b91fd887916a5d/owner_product.Lens<R, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/ordinary_optional_resource.Slot<S, P, identity>, Rest> -> @-binding:0x2a0aaf4f2cb3f416a9b91fd887916a5d/optional_resource_binding.Binding<S, R, P, Rest, identity, lens> -> @-view:(@_:P -> Pair(P, V)) -> Declaration<S, C, R, E, Ops(S, P, identity, V)>
template required_resource source · line 49 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-Rest:Type -> @-V:Data -> @-identity:0x2a0aaf4f2cb3f416a9b91fd887916a5d/ordinary_schema.Resource<S, P> -> @-lens:0x2a0aaf4f2cb3f416a9b91fd887916a5d/owner_product.Lens<R, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/ordinary_optional_resource.Slot<S, P, identity>, Rest> -> @-binding:0x2a0aaf4f2cb3f416a9b91fd887916a5d/optional_resource_binding.Binding<S, R, P, Rest, identity, lens> -> @-view:(@_:P -> Pair(P, V)) -> Declaration<S, C, R, E, Ops(S, P, identity, V)>
template plan source · line 51 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Type -> Type) -> @value:Declaration<S, C, R, E, Ops> -> 0x2a0aaf4f2cb3f416a9b91fd887916a5d/check.Plan<S, C, R, E, Ops>
template uses source · line 54 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Type -> Type) -> @value:Declaration<S, C, R, E, Ops> -> List<&2, Use>
template PairOps source · line 60 · raw
@-L:(@_:Type -> Type) -> @-R:(@_:Type -> Type) -> @H:Type -> Type
A single reached predicate may request several declared reads. Validation threads the original World in authored order and retains each returned name.
template required_join source · line 61 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @before:List<&2, String> -> @observed:Pair(0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.World<S, C, R, E>, List<&2, String>) -> Pair(0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.World<S, C, R, E>, List<&2, String>)
template required_right source · line 64 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-right:(@_:0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.World<S, C, R, E> -> Pair(0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.World<S, C, R, E>, List<&2, String>)) -> @observed:Pair(0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.World<S, C, R, E>, List<&2, String>) -> Pair(0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.World<S, C, R, E>, List<&2, String>)
template required_pair source · line 67 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-left:(@_:0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.World<S, C, R, E> -> Pair(0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.World<S, C, R, E>, List<&2, String>)) -> @-right:(@_:0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.World<S, C, R, E> -> Pair(0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.World<S, C, R, E>, List<&2, String>)) -> @world:0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.World<S, C, R, E> -> Pair(0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.World<S, C, R, E>, List<&2, String>)
template both source · line 68 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-LOps:(@_:Type -> Type) -> @-ROps:(@_:Type -> Type) -> @-left:Declaration<S, C, R, E, LOps> -> @-right:Declaration<S, C, R, E, ROps> -> Declaration<S, C, R, E, PairOps(LOps, ROps)>