HI Gang,
I'm seeing a weird difference between the AST groovy gives me in a
global and local annotation. Both transforms are in the semantic
analysis phase.
It happens in this code:
AstBuilder factory = new AstBuilder()
factory.buildFromCode { println "Hello World" }
'factory.buildFromCode ' is a MethodCallExpression. The
MethodCallExpression has an objectExpression.type field that can tell
you what type factory is.
When running a global transformation on the code the type is Object.
When running a local transformation on the code the type is AstBuilder.
Is this expected? Or do you think I'm doing something weird in my code?
--
Hamlet D'Arcy
hamletdrc@...
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email--
Hamlet D'Arcy