groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul King (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (GROOVY-3472) Wrong line/column numbers for method and closure blocks
Date Tue, 02 May 2017 02:04:18 GMT

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

Paul King closed GROOVY-3472.
-----------------------------

> 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.15#6346)

Mime
View raw message