[ 
https://issues.apache.org/jira/browse/GROOVY-5510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15995059#comment-15995059
 ] 

Daniel Sun commented on GROOVY-5510:
------------------------------------

Hi Paul,

     I'll close it.

BTW, I have been fixing tests which Parrot did not covered 
before(https://github.com/danielsun1106/groovy-parser) and I wish I could fix 
them all in one month or two. If you want to release 3.0.0 alpha-1 some day, 
please give me a heads-up :-)

> Wrong line number for assignment
> --------------------------------
>
>                 Key: GROOVY-5510
>                 URL: https://issues.apache.org/jira/browse/GROOVY-5510
>             Project: Groovy
>          Issue Type: Sub-task
>          Components: parser
>    Affects Versions: 2.0-rc-2
>            Reporter: Cédric Champeau
>            Assignee: Daniel Sun
>             Fix For: 3.x
>
>
> It seems that annotating declarations breaks the line number of the AST node 
> which is annotated, replacing it with the line number of the annotation 
> itself.
> Test case:
> {code}
> void testLineNumber() {
>         assertScript '''//1
>             @ASTTest(phase=INSTRUCTION_SELECTION, value= { // 2
>                 assert node.lineNumber == 5 // 3
>             }) // 4
>             int x = 1
>         '''
>     }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to