A macro helper trait that generates implicit description for expressions.
A macro helper mixin that provides simplified, pattern-based AST operations.
A macro helper mixin that provides simplified, pattern-based AST operations.
The type of the macro context
A macro helper trait that generates implicit description for expressions. The transformation operates in the context of a function of the form
Function1[ T, U ]
, or in other words only supports single-parameter functions.The expression is transformable via com.wix.accord.transform.ExpressionDescriber.renderDescriptionTree based on the following rules:
{ p: Person => p.firstName }
gets rewritten to a tree representing the string literal"firstName"
{ p: Person => p.firstName as "first name" }
gets rewritten simply as"first name"
{ _ => 1 + 2 + 3 }
gets rewritten as"1 + 2 + 3"
.The macro context type