[ 
https://issues.apache.org/jira/browse/GROOVY-3472?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Sun resolved GROOVY-3472.
--------------------------------
       Resolution: Fixed
    Fix Version/s:     (was: 4.0)
                   3.0

Fixed in the parrot branch

> Wrong line/column numbers for method and closure blocks
> -------------------------------------------------------
>
>                 Key: GROOVY-3472
>                 URL: https://issues.apache.org/jira/browse/GROOVY-3472
>             Project: Groovy
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 1.5.7
>            Reporter: Petr Hejl
>            Assignee: Daniel Sun
>             Fix For: 3.0
>
>
> Under certain circumstances code blocks (BlockStatement) of MethodNode and 
> ClosureExpression have just [-1,-1,-1,-1] for line and column numbers, while 
> parent (MethodNode, ClosureExpression) is ok. Sometimes even some statements 
> in the block have [-1,-1,-1,-1] coordinates.
> Sample - method x:
> {noformat}
> class GroovyClass {
>     def x() {
>         String a
>         
>     }
> }
> {noformat}
> In this situation MethodNode [2,5,6,6], code BlockStatement [-1,-1,-1,-1] , 
> ReturnStatement [-1,-1,-1,-1]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to