Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.6-beta-1
-
Fix Version/s: 1.5.7, 1.6-beta-2
-
Component/s: ast builder
-
Labels:None
-
Environment:WinXP
-
Number of attachments :
Description
The line/col information for ClassNode's representing the type as fully qualified class name (e.g. in a declaration) were wrong. This is
solved by
- changing the rule 'classOrInterfaceType' in the grammar. The nodes are now built with correct line/col infos.
In the grammar, the node representing the type is passed over rules and is copied in the rule 'listOfVariables'. During this duplication the lastline and
lastcolumn information got lost. The getASTFactory().dupTree(t) called the initialize method of GroovySourceAST but lastline and
lastcolumn weren't set.
- Now: if a node of type GroovySourceAST is used to initialize the node, lastline and lastcolumn are set