I found your blog post, and it seemed like a good way to get started with sending closures to ast transformations, but I get compilation errors(when running from grails 2.2), specifically around the:
methodCall {
expression.add(closureAST)
constant "call"
argumentList {
}
}
The error I get is :
General error during semantic analysis: methodCall could not be invoked. Expected to receive parameters [class org.codehaus.groovy.ast.expr.Expression, class org.codehaus.groovy.ast.expr.Expression, class org.codehaus.groovy.ast.expr.Expression] but found []
Any ideas on how to get around it, because I'm just going in circles at this point?
I have tried the example outside of grails, in groovy 2.1.4, but the Requires2Example annotation throws this error:
Caught: groovy.lang.MissingPropertyException: No such property: divisor for class: Requires2Example