std/expression
Quoted expressions: Expression, the typed tree a quoted parameter hands over, and ExpressionNode, the plain
data anyone can build, match and transform. assert and nameOf are what most callers reach for; a provider
that renders its own explanation of a captured expression works with ExpressionNode directly.
Modules
std/expression/libQuoted expressions: [Expression], the typed tree a quoted parameter hands over, and [ExpressionNode], the plain data anyone can build, match and transform.
Everything
- fn
assertPanics ifconditionisfalse. - type
BinaryOperatorThe infix operators a quoted expression can carry, one case per operator. - type
ExpressionThe typed tree behind a quoted parameter:Expression<Value>type checks its argument as an ordinaryValueand hands it over together with the expression tree that produced it. - type
ExpressionNodeNames are already resolved and everything is typed: implicit_, named closure parameters, receivers and implicitselfshow up as explicitParameter,FieldandCallnodes. - fn
nameOfThe name of what was written, never its value:nameOf(user.email)is"email",nameOf(limit)is"limit". - type
SourceLocationA place in a source file: what [Expression.location] and a diagnostic point at. - type
TypeReferenceA description of a type. - type
UnaryOperatorThe prefix operators a quoted expression can carry, one case per operator.