groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject [groovy] 01/03: minor refactor: set source position
Date Sat, 04 May 2019 05:15:32 GMT
This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch GROOVY_2_5_X
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit 2a524cc85f70770ad7d0a74bef1589fb5c61a0a5
Author: Paul King <paulk@asert.com.au>
AuthorDate: Fri May 3 15:44:34 2019 +1000

    minor refactor: set source position
---
 src/main/java/org/codehaus/groovy/classgen/AsmClassGenerator.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/main/java/org/codehaus/groovy/classgen/AsmClassGenerator.java b/src/main/java/org/codehaus/groovy/classgen/AsmClassGenerator.java
index 8670c38..aa49f5e 100644
--- a/src/main/java/org/codehaus/groovy/classgen/AsmClassGenerator.java
+++ b/src/main/java/org/codehaus/groovy/classgen/AsmClassGenerator.java
@@ -989,6 +989,7 @@ public class AsmClassGenerator extends ClassGenerator {
                                             new ClassExpression(outer),
                                             expression.getProperty()
                                     );
+                                    pexp.getObjectExpression().setSourcePosition(objectExpression);
                                     pexp.visit(controller.getAcg());
                                     return;
                                 }


Mime
View raw message