groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject groovy git commit: typo in comment
Date Fri, 07 Sep 2018 05:29:52 GMT
Repository: groovy
Updated Branches:
  refs/heads/master a7ebe87b8 -> ec75a2790


typo in comment


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/ec75a279
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/ec75a279
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/ec75a279

Branch: refs/heads/master
Commit: ec75a2790075a5e06e072e1ea18a88eb811076ca
Parents: a7ebe87
Author: Paul King <paulk@asert.com.au>
Authored: Fri Sep 7 15:29:28 2018 +1000
Committer: Paul King <paulk@asert.com.au>
Committed: Fri Sep 7 15:29:28 2018 +1000

----------------------------------------------------------------------
 .../src/main/java/org/apache/groovy/parser/antlr4/AstBuilder.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/ec75a279/subprojects/parser-antlr4/src/main/java/org/apache/groovy/parser/antlr4/AstBuilder.java
----------------------------------------------------------------------
diff --git a/subprojects/parser-antlr4/src/main/java/org/apache/groovy/parser/antlr4/AstBuilder.java
b/subprojects/parser-antlr4/src/main/java/org/apache/groovy/parser/antlr4/AstBuilder.java
index b0f0b3c..ce8ee31 100644
--- a/subprojects/parser-antlr4/src/main/java/org/apache/groovy/parser/antlr4/AstBuilder.java
+++ b/subprojects/parser-antlr4/src/main/java/org/apache/groovy/parser/antlr4/AstBuilder.java
@@ -2332,7 +2332,7 @@ public class AstBuilder extends GroovyParserBaseVisitor<Object>
implements Groov
             return configureAST(
                     new BinaryExpression(baseExpr, createGroovyToken(tuple.getFirst()), tuple.getSecond(),
isSafeChain || asBoolean(ctx.indexPropertyArgs().QUESTION())),
                     ctx);
-        } else if (asBoolean(ctx.namedPropertyArgs())) { // this is a special way to new
instance, e.g. Person(name: 'Daniel.Sun', location: 'Shanghai')
+        } else if (asBoolean(ctx.namedPropertyArgs())) { // this is a special way to new
instance, e.g. Person[name: 'Daniel.Sun', location: 'Shanghai']
             List<MapEntryExpression> mapEntryExpressionList =
                     this.visitNamedPropertyArgs(ctx.namedPropertyArgs());
 


Mime
View raw message