[root]/groovy/groovy-core/src/main/org/codehaus/groovy
ant
(9 files, 2038 lines)
antlr
(14 files, 7169 lines)
java
(4 files, 2406 lines)
parser
(0 files, 0 lines)
syntax
(1 files, 70 lines)
treewalker
(11 files, 4438 lines)
ast
(23 files, 4276 lines)
expr
(37 files, 3743 lines)
stmt
(19 files, 1608 lines)
bsf
(3 files, 330 lines)
classgen
(20 files, 8006 lines)
control
(15 files, 4325 lines)
io
(7 files, 641 lines)
messages
(6 files, 438 lines)
groovydoc
(13 files, 334 lines)
interpreter
(0 files, 0 lines)
lang
(0 files, 0 lines)
runtime
(29 files, 11318 lines)
metaclass
(12 files, 4645 lines)
typehandling
(11 files, 1643 lines)
wrappers
(11 files, 682 lines)
sandbox
(0 files, 0 lines)
markup
(0 files, 0 lines)
streamingmarkupsupport
(0 files, 0 lines)
ui
(4 files, 115 lines)
util
(0 files, 0 lines)
slurpersupport
(0 files, 0 lines)
syntax
(15 files, 3844 lines)
lexer
(0 files, 0 lines)
parser
(0 files, 0 lines)
tools
(11 files, 1605 lines)
groovydoc
(23 files, 1583 lines)
gstring-templates
(0 files, 0 lines)
class-level
(2 files, 114 lines)
package-level
(3 files, 120 lines)
top-level
(6 files, 205 lines)
xml
(2 files, 344 lines)
wiki
(0 files, 0 lines)
fixed most of the warnings reported by Eclipse (javadoc, unused imports, ...)
1 lines of code changed in:
this commit contains the reimplementation of the scoping. The complete scoping is removed from the ACG. Additionally some code from the ACG is transfered in a Helper that manges labels, scopes and variable creation in a stack. All checks from JSRVariableScopeCodeVisitor are transfered into the ClassCompletion verifier or the new VariableScopeVisitor. Additionally some checks for labels were added with the LabelVerifier. ACG was changed so a DeclarationExpression will no longer create a local variable and if a variable is a filed or protperty accessed from inside a closure ACG will no longer try to access that field directly. Instead the closure has to resolve these cases at runtime.
Note: this commit should pass the tests but is imcomplete due to missing tests.
113 lines of code changed in:
Added a new taskdef in antlib.xml to support the groovy ant task
1 lines of code changed in:
Ensured that the ultimate cause of a compilation failure is attached to the exception
15 lines of code changed in:
GROOVY-436: With Ant 1.6, ability to use namespaces instead of taskdef to be able to write build files like:
<project xmlns:g="antlib:org.codehaus.groovy">
<target name="compile">
<mkdir dir="classes"/>
<g:groovyc srcdir="src/scripts" destdir="classes"/>
</target>
</project>
3 lines of code changed in:
Centralized compilation management and error handling.
Compilation is now managed by SourceUnit and CompilationUnit objects to which errors
are reported. CompilerConfiguration provides a single object for controlling compiler
configuration. CompilationFailedException is thrown for any compilation failures, and
links back to the CompilationUnit and SourceUnit that discovered the problem and that
house the error messages. These objects all reside in org.codehaus.groovy.control.
81 lines of code changed in:
Overhaul of Groovy parser and lexer. Includes numerous bug fixes, enhancements,
and changes.
21 lines of code changed in:
Applied patches kindly submitted by Chris Poirier to refactor the code, add better warning level support to the compiler and to document the code.
Details from Chris....
Multiple error handling is in place, but not fully completed. It works
best in the parsing phase, but I'm only about half-way through an
overhaul of the parser code. I've fixed about a dozen bugs in the
parser, and refactored a lot of the code. I've added parser (only)
support for nested classes, static initializers, and interfaces. I'll
continue with the process tonight.
The FileSystemCompiler has a new flag, --exception, that can be used to
output full stack traces for exceptions. By default, only uncaught
exceptions will get the full report. The code that outputs the line on
which the error occurred will probably only work with invokations
through the FileSystemCompiler, and I don't know exactly how well
CompilerFacade will currently behave.
24 lines of code changed in:
fixed bug when assigning to class
4 lines of code changed in:
Made the parser exceptions non-runtime and commented out the failing PrintTest code
8 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:
fixed error handling to improve error reporting
45 lines of code changed in:
refactored the source tree to make things a little cleaner.
now have the more normal src/main and src/test trees
15 lines of code changed in: