~/bend-docscommunity

execution_resource_interpreter.bend checks

raw source on the hub · import bendvy-ecs-core@0.1.0.3/execution_resource_interpreter.bend as Execution_resource_interpreter

9 imports
import Base
import ./execution_resource_store.bend as Store
import ./execution_resource_access.bend as A
import ./execution_composer_layout.bend as L
import ./execution_layout_access.bend as Access
import ./execution_state.bend as State
import ./execution_lifecycle_notices.bend as Notice
import ./world.bend as W
import ./change_tick.bend as Tick

Definitions

def read_slot source · line 11 · raw

@-S:Data -> @-P:Type -> @-V:Data -> @-key:String -> @-origin:0x704c77730661eff4309838fc738ef615/execution_composer_layout.Layout -> @-Rest:Type -> @-Resources:Type -> @put:(@_:Rest -> @_:0x704c77730661eff4309838fc738ef615/execution_composer_layout.ResourceSlot<S, 0x704c77730661eff4309838fc738ef615/execution_composer_layout.Viewed<P, V>, key, origin> -> Resources) -> @result:Pair(Rest, 0x704c77730661eff4309838fc738ef615/execution_composer_layout.ResourceSlot<S, 0x704c77730661eff4309838fc738ef615/execution_composer_layout.Viewed<P, V>, key, origin>) -> Pair(Resources, 0x704c77730661eff4309838fc738ef615/execution_resource_store.Lookup<V>)

def scope_returned source · line 14 · raw

@-S:Data -> @-C:Type -> @-Resources:Type -> @-Out:Type -> @columns:C -> @handles:List<&2, 0x704c77730661eff4309838fc738ef615/world.Handle<S>> -> @tick:0x704c77730661eff4309838fc738ef615/change_tick.Tick -> @prior:Maybe<&2, 0x704c77730661eff4309838fc738ef615/change_tick.Tick> -> @view:0x704c77730661eff4309838fc738ef615/execution_lifecycle_notices.View<S> -> @result:Pair(Resources, Out) -> Pair(0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, Resources>, Out)

def read_scope source · line 17 · raw

@-S:Data -> @-C:Type -> @-Resources:Type -> @-V:Data -> @read:(@_:Resources -> Pair(Resources, 0x704c77730661eff4309838fc738ef615/execution_resource_store.Lookup<V>)) -> @source:0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, Resources> -> @valid:Bool -> Pair(0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, Resources>, 0x704c77730661eff4309838fc738ef615/execution_resource_store.Lookup<V>)

def edited_slot source · line 21 · raw

@-Slot:Type -> @-Rest:Type -> @-Resources:Type -> @-P:Type -> @-Out:Type -> @put:(@_:Rest -> @_:Slot -> Resources) -> @rest:Rest -> @result:Pair(Slot, Out) -> Pair(Resources, 0x704c77730661eff4309838fc738ef615/execution_resource_store.Edit<P, Out>)

def edit_slot source · line 24 · raw

@-Slot:Type -> @-Rest:Type -> @-Resources:Type -> @-P:Type -> @-Out:Type -> @put:(@_:Rest -> @_:Slot -> Resources) -> @rewrite:(@_:Slot -> Pair(Slot, Out)) -> @result:Pair(Rest, Slot) -> Pair(Resources, 0x704c77730661eff4309838fc738ef615/execution_resource_store.Edit<P, Out>)

def edit_scope source · line 27 · raw

@-S:Data -> @-C:Type -> @-Resources:Type -> @-P:Type -> @-Out:Type -> @own:(@_:0x704c77730661eff4309838fc738ef615/change_tick.Tick -> @_:(@_:P -> Pair(P, Out)) -> @_:Resources -> Pair(Resources, 0x704c77730661eff4309838fc738ef615/execution_resource_store.Edit<P, Out>)) -> @source:0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, Resources> -> @transform:(@_:0x704c77730661eff4309838fc738ef615/change_tick.Tick -> @_:P -> Pair(P, Out)) -> @valid:Bool -> Pair(0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, Resources>, 0x704c77730661eff4309838fc738ef615/execution_resource_store.Edit<P, Out>)

Templates

template read_caps source · line 31 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-full:0x704c77730661eff4309838fc738ef615/execution_composer_layout.Layout -> @-route:0x704c77730661eff4309838fc738ef615/execution_composer_layout.Route -> @local:{R == 0x704c77730661eff4309838fc738ef615/execution_composer_layout.resources(S, full) : Type} -> 0x704c77730661eff4309838fc738ef615/execution_resource_access.Reader<0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>, 0x704c77730661eff4309838fc738ef615/execution_composer_layout.view(full, route)>

template write_caps source · line 34 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-full:0x704c77730661eff4309838fc738ef615/execution_composer_layout.Layout -> @-route:0x704c77730661eff4309838fc738ef615/execution_composer_layout.Route -> @local:{R == 0x704c77730661eff4309838fc738ef615/execution_composer_layout.resources(S, full) : Type} -> 0x704c77730661eff4309838fc738ef615/execution_resource_access.Writer<0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>, 0x704c77730661eff4309838fc738ef615/execution_composer_layout.payload(full, route), 0x704c77730661eff4309838fc738ef615/execution_composer_layout.view(full, route)>

template read_dictionary source · line 41 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-full:0x704c77730661eff4309838fc738ef615/execution_composer_layout.Layout -> @-route:0x704c77730661eff4309838fc738ef615/execution_composer_layout.Route -> @-valid:{0x704c77730661eff4309838fc738ef615/execution_composer_layout.grant_valid(full, route) == True{} : Bool} -> @-local:{R == 0x704c77730661eff4309838fc738ef615/execution_composer_layout.resources(S, full) : Type} -> 0x704c77730661eff4309838fc738ef615/execution_resource_access.Reader<0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>, 0x704c77730661eff4309838fc738ef615/execution_composer_layout.view(full, route)>

Closed ordinary framework dictionary; callers select no independent grants.

template write_dictionary source · line 43 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-full:0x704c77730661eff4309838fc738ef615/execution_composer_layout.Layout -> @-route:0x704c77730661eff4309838fc738ef615/execution_composer_layout.Route -> @-valid:{0x704c77730661eff4309838fc738ef615/execution_composer_layout.resource_write_valid(full, route) == True{} : Bool} -> @-local:{R == 0x704c77730661eff4309838fc738ef615/execution_composer_layout.resources(S, full) : Type} -> 0x704c77730661eff4309838fc738ef615/execution_resource_access.Writer<0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>, 0x704c77730661eff4309838fc738ef615/execution_composer_layout.payload(full, route), 0x704c77730661eff4309838fc738ef615/execution_composer_layout.view(full, route)>