execution_declaration.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.3/execution_declaration.bend as Execution_declaration
7 imports
import Base import ./execution_state_effect.bend as StateEffect import ./execution_reservation_authority.bend as Effect import ./execution_state.bend as State import ./capabilities.bend as Cap import ./execution_query_recipe.bend as Recipe import ./execution_resource_recipe.bend as Resources
Types
type Mode source · line 9 · raw
Data
ExclusiveMode
type Permission source · line 12 · raw
Data
ReadOnlyPermission
WritablePermission
type AccessKind source · line 15 · raw
Data
ComponentAccessAccessKind
ResourceAccessAccessKind
ServiceAccessAccessKind
LifecycleAccessAccessKind
type Access source · line 20 · raw
Data
Access@key:String -> @kind:AccessKind -> @mode:Mode -> @permission:Permission -> Access
type Declaration source · line 27 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-Ops:(@_:Type -> Type) -> Type
Declaration@-S:Data -> @-C:Type -> @-R:Type -> @-Ops:(@_:Type -> Type) -> @caps:Ops(0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>) -> @access:List<&2, Access> -> Declaration<S, C, R, Ops>
type Recipes source · line 69 · raw
@-S:Data -> @-WC:Type -> Data
Generalized declarations retain symbolic recipes until actual admission. Unsupported construction inventory cannot be converted to Declaration/grants.
Recipes@-S:Data -> @-WC:Type -> @queries:List<&2, 0x704c77730661eff4309838fc738ef615/execution_query_recipe.Recipe<S, WC>> -> @resources:List<&2, 0x704c77730661eff4309838fc738ef615/execution_resource_recipe.Entry> -> Recipes<S, WC>
type Compilation source · line 71 · raw
@-S:Data -> @-WC:Type -> @-C:Type -> @-R:Type -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> Type) -> Type
Supported@-S:Data -> @-WC:Type -> @-C:Type -> @-R:Type -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> Type) -> @declaration:Declaration<S, C, R, Ops(0x704c77730661eff4309838fc738ef615/execution_reservation_authority.Granted, 0x704c77730661eff4309838fc738ef615/execution_state_effect.Transition(0x704c77730661eff4309838fc738ef615/execution_state.Invocation<S>))> -> @recipes:Recipes<S, WC> -> Compilation<S, WC, C, R, Ops>
Unsupported@-S:Data -> @-WC:Type -> @-C:Type -> @-R:Type -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> Type) -> @caps:Ops(0x704c77730661eff4309838fc738ef615/execution_reservation_authority.Granted, 0x704c77730661eff4309838fc738ef615/execution_state_effect.Transition(0x704c77730661eff4309838fc738ef615/execution_state.Invocation<S>), 0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>) -> @access:List<&2, Access> -> @recipes:Recipes<S, WC> -> Compilation<S, WC, C, R, Ops>
Definitions
def keys source · line 22 · raw
@accesses:List<&2, Access> -> List<&2, String>
def requirement_key source · line 45 · raw
@kind:AccessKind -> @key:String -> String
def qualified source · line 51 · raw
@accesses:List<&2, Access> -> List<&2, String>
def permitted_read source · line 58 · raw
@permission:Permission -> Bool
def read_only source · line 62 · raw
@accesses:List<&2, Access> -> Bool
Templates
template access source · line 29 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-Ops:(@_:Type -> Type) -> @value:Declaration<S, C, R, Ops> -> List<&2, String>
template grants source · line 32 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-Ops:(@_:Type -> Type) -> @value:Declaration<S, C, R, Ops> -> Ops(0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>)
template Combined source · line 35 · raw
@-L:(@_:Type -> Type) -> @-R:(@_:Type -> Type) -> @H:Type -> Type
template paired source · line 37 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-L:(@_:Type -> Type) -> @-Right:(@_:Type -> Type) -> @left:Declaration<S, C, R, L> -> @right:Declaration<S, C, R, Right> -> Declaration<S, C, R, Combined(L, Right)>
template requirements source · line 41 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-Ops:(@_:Type -> Type) -> @value:Declaration<S, C, R, Ops> -> List<&2, Access>
template requirement_keys source · line 56 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-Ops:(@_:Type -> Type) -> @value:Declaration<S, C, R, Ops> -> List<&2, String>
template compilation_supported source · line 74 · raw
@-S:Data -> @-WC:Type -> @-C:Type -> @-R:Type -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> Type) -> @value:Compilation<S, WC, C, R, Ops> -> Bool
template compilation_requirements source · line 78 · raw
@-S:Data -> @-WC:Type -> @-C:Type -> @-R:Type -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> Type) -> @value:Compilation<S, WC, C, R, Ops> -> List<&2, Access>
template compilation_access source · line 82 · raw
@-S:Data -> @-WC:Type -> @-C:Type -> @-R:Type -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> Type) -> @value:Compilation<S, WC, C, R, Ops> -> List<&2, String>
template compilation_requirement_keys source · line 84 · raw
@-S:Data -> @-WC:Type -> @-C:Type -> @-R:Type -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> Type) -> @value:Compilation<S, WC, C, R, Ops> -> List<&2, String>
template compilation_read_only source · line 86 · raw
@-S:Data -> @-WC:Type -> @-C:Type -> @-R:Type -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> Type) -> @value:Compilation<S, WC, C, R, Ops> -> Bool
template trusted_construction_caps source · line 92 · raw
@-S:Data -> @-WC:Type -> @-C:Type -> @-R:Type -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> Type) -> @compilation:Compilation<S, WC, C, R, Ops> -> Ops(0x704c77730661eff4309838fc738ef615/execution_reservation_authority.Granted, 0x704c77730661eff4309838fc738ef615/execution_state_effect.Transition(0x704c77730661eff4309838fc738ef615/execution_state.Invocation<S>), 0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>)
Trusted static construction projection. Calling this does not admit execution; factories must pattern-match the same Compilation before registration or body.