def observe

bendvy-ecs-core@0.1.0.4 · ordinary_query_declaration.bend:32

import bendvy-ecs-core@0.1.0.4/ordinary_query_declaration.bend as OrdinaryQueryDeclaration
import Base

32# Return the declaration owner together with its detached debug clauses.
33# Does not inspect a world, execute a query or advance a system cursor.
34def observe(~S:Data,~H:Type,~G:Type,declaration:Declaration<S,H,G>) -> Declaration<S,H,G> & List<&2,Clause<S>>:
35  match declaration:
36    case Declaration{grant,select,+clauses}:(Declaration{grant,select,clauses},clauses)

Uses (5)

Used by (0)

No other definition uses this definition.