You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by GitBox <gi...@apache.org> on 2019/07/30 14:33:39 UTC

[GitHub] [groovy] eric-milles commented on issue #974: GROOVY-8002: propagate source position to method in chain assignment

eric-milles commented on issue #974: GROOVY-8002: propagate source position to method in chain assignment
URL: https://github.com/apache/groovy/pull/974#issuecomment-516446279
 
 
   This is a common pattern, the original parsed AST is transformed and the new nodes need to have source ranges transferred.  In this case `PoppingMethodCallExpression trn = new PoppingMethodCallExpression(receiver.transformExpression(transformer), setter, (TemporaryVariableExpression) tmp.transformExpression(transformer));` creates new nodes.  The entire expression does not have source position set.  In addition, the object expression and method expression may be new and lack source position.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services