-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.7-beta-2
-
Fix Version/s: 1.7-rc-1
-
Component/s: ast builder
-
Labels:None
def a = 1 def b = 2 def m1() {} def m2() {}
The ASTBrowser for the above script shows the BlockStatement containing free-standing statements of the script as well as the script ClassNode that groovy makes for it internally, but it does now show the methods m1() / m2() as part of the AST for the free-standing script.
I expected to see the following structure:
BlockStatement methods - m1 - m2 ClassNode - script5687897897