def descriptions

bendvy-ecs-core@0.1.0.4 · ordinary_resource_system.bend:38

import bendvy-ecs-core@0.1.0.4/ordinary_resource_system.bend as OrdinaryResourceSystem
import Base
import bendvy-ecs-core@0.1.0.4/ordinary_query_declaration.bend as Query

38# Description allocation is explicit observation work, not registration work.
39# Presentation adapter expanding access names into same-mode detached clauses.
40# Does not validate grants, allocate a registry or invoke a resource operation.
41def descriptions(~S:Data,+kind:Query.Mode,names:List<&2,String>) -> List<&2,Query.Clause<S>>:
42  match names:
43    case []:[]
44    case name <> rest:Query.Clause{name,kind} <> descriptions(~S,kind,rest)

Uses (4)

Used by (1)