You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by em...@apache.org on 2022/09/15 21:32:28 UTC
[groovy] branch GROOVY_2_5_X updated: GROOVY-10757: create expression for implicit-`this` method call receiver
This is an automated email from the ASF dual-hosted git repository.
emilles pushed a commit to branch GROOVY_2_5_X
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/GROOVY_2_5_X by this push:
new f79c47befb GROOVY-10757: create expression for implicit-`this` method call receiver
f79c47befb is described below
commit f79c47befb284395da87b23183f3bc7870b67226
Author: Eric Milles <er...@thomsonreuters.com>
AuthorDate: Thu Sep 15 16:12:17 2022 -0500
GROOVY-10757: create expression for implicit-`this` method call receiver
---
src/main/java/org/codehaus/groovy/antlr/AntlrParserPlugin.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/codehaus/groovy/antlr/AntlrParserPlugin.java b/src/main/java/org/codehaus/groovy/antlr/AntlrParserPlugin.java
index cff33b874c..2ffb90e9bc 100644
--- a/src/main/java/org/codehaus/groovy/antlr/AntlrParserPlugin.java
+++ b/src/main/java/org/codehaus/groovy/antlr/AntlrParserPlugin.java
@@ -2503,7 +2503,7 @@ public class AntlrParserPlugin extends ASTHelper implements ParserPlugin, Groovy
selector = objectNode.getNextSibling();
} else {
implicitThis = true;
- objectExpression = VariableExpression.THIS_EXPRESSION;
+ objectExpression = new VariableExpression("this");
selector = node;
}