Hey Mario,
Good catch! Maybe we should add it to documentation (when there will be
some :D )
BR,
Sergei
On Tue, Apr 19, 2016 at 6:21 PM Mario Garcia wrote:
> I figured out why:
>
> By default macros are using CompilePhase.CONVERSION and at this point the
> compiler
I figured out why:
By default macros are using CompilePhase.CONVERSION and at this point the
compiler doesn't care about types. That's why it didn't recognized neither
"JsonOutput" (When using JsonOutput.toJson...) nor "groovy" (When using
groovy.json.JsonOutput.toJson...):
The way it's working
Hello:
I'm playing a little bit with groovy-macro, BTW it's really cool how easy
you can create statements and expressions.
However I'm having some issues when trying to create an static method call:
*Statement callJsonOutput(final MapExpression mapExpression) {*
*return macro(true)