def resource_fields

bendvy-ecs-core@0.1.0.4 · ordinary_app_access.bend:25

import bendvy-ecs-core@0.1.0.4/ordinary_app_access.bend as OrdinaryAppAccess
import Base
import bendvy-ecs-core@0.1.0.4/ordinary_query_declaration.bend as Query

25# Typed modes retain the exact operational declaration, including filter-only modes.
26def resource_fields(~S:Data,+mode:Query.Mode,access:List<&2,String>) -> List<&2,Query.Clause<S>>:
27  match access:
28    case []:[]
29    case name <> rest:Query.Clause{name,mode} <> resource_fields(~S,mode,rest)

Uses (4)

Used by (2)