[root]/groovy/groovy-core/src/test/org/codehaus/groovy/ast
reformat test code
15 lines of code changed in:
GROOVY-1202: provide a feature to declare TestCases as 'notYetImplemented' and thus expected to fail: first attempt to make this run on the build server
2 lines of code changed in:
this committ removes the class org.codehaus.groovy.ast.Type completely and transferes its functuanality to ClassNode and ClassHelper. A ClassNode can now be a primitive type or any other type created with an class file available. ClassNodes can now be primary, which means they are the a result of a class definiton in a file - unlike a ClassNode created from a Class. All phases till actual class creation should work on ClassNode instead of Class. So all Class handling code in ACG is transformed to ahndle ClassNode instead. A ClassNode can contain a redirect now. This is used when multiple names point to the same ClassNode. This mechanism was used instead of a replacing like with the Type class. This was needed because all class resolving code is transfered into a single phase right after creation of the groovy ast and to avoid creation of huge amounts of code to replace a ClassNode in statements and expressions.
The Compiler is now able to enqueue source files. This means when ever a compiler phase found out it is necessary to compile another source file it can put this file into the compiler using the addSource method of CompilationUnit and leave the rest to the compiler. The compiler will then go back to the initialization phase and proceed to the goal phase ignoring all already handled files but the new added file.
5 lines of code changed in:
This patch removes many string descriptons of types from the class generator and enfocres the usage of the class Type instead. A new interface is introduced for nodes which are possible variables
5 lines of code changed in:
Upgrading from ASM 1.5.2 to ASM 2.0
2 lines of code changed in:
updated the test cases to use JSR parser syntax
0 lines of code changed in:
Added support for the running of Groovy scripts without a class required
So you can now compile & run the following script...
println("Hello world")
who-hoo!
72 lines of code changed in:
Numerous bug fixes for working with class expressions.
Now we can handle the situation where you refer to a class in the same compliation unit (but not yet generated as bytecode) as well as handling imports to not-yet-existing classes etc.
7 lines of code changed in:
Moved the GroovyTestCase into the core groovy.lang package (since the primary use case for Groovy to start with is writing unit test cases). We could move this to groovy.test later on maybe.
Also I've updated the copyright notice to be to myself and bob
1 lines of code changed in:
updated documentation links and fixed the access of outer class fields for inner classes
76 lines of code changed in: