This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch GROOVY-8258
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/GROOVY-8258 by this push:
     new e9f751d  GROOVY-8258: trivial refactoring
e9f751d is described below

commit e9f751d2ccd4cdb60067dc94f075f5f181015494
Author: Daniel Sun <[email protected]>
AuthorDate: Thu Oct 8 03:21:24 2020 +0800

    GROOVY-8258: trivial refactoring
---
 .../org/apache/groovy/linq/provider/collection/GinqAstWalker.groovy | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/subprojects/groovy-linq/src/main/groovy/org/apache/groovy/linq/provider/collection/GinqAstWalker.groovy
 
b/subprojects/groovy-linq/src/main/groovy/org/apache/groovy/linq/provider/collection/GinqAstWalker.groovy
index 779c215..858e607 100644
--- 
a/subprojects/groovy-linq/src/main/groovy/org/apache/groovy/linq/provider/collection/GinqAstWalker.groovy
+++ 
b/subprojects/groovy-linq/src/main/groovy/org/apache/groovy/linq/provider/collection/GinqAstWalker.groovy
@@ -266,7 +266,7 @@ class GinqAstWalker implements GinqVisitor<Object>, 
SyntaxErrorReportable {
         final Expression firstAliasExpr = dataSourceExpression.aliasExpr
         final Expression secondAliasExpr = joinExpression.aliasExpr
 
-        def correctVar = { Expression expression ->
+        def correctVars = { Expression expression ->
             if (expression instanceof VariableExpression) {
                 Expression transformedExpression = null
                 if (firstAliasExpr.text == expression.text) {
@@ -291,7 +291,7 @@ class GinqAstWalker implements GinqVisitor<Object>, 
SyntaxErrorReportable {
         expr = expr.transformExpression(new ExpressionTransformer() {
             @Override
             Expression transform(Expression expression) {
-                Expression transformedExpression = correctVar(expression)
+                Expression transformedExpression = correctVars(expression)
                 if (transformedExpression !== expression) {
                     return transformedExpression
                 }
@@ -300,7 +300,7 @@ class GinqAstWalker implements GinqVisitor<Object>, 
SyntaxErrorReportable {
             }
         })
 
-        return correctVar(expr)
+        return correctVars(expr)
     }
 
     @Override

Reply via email to