This is an automated email from the ASF dual-hosted git repository.
sunlan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/master by this push:
new 408c719 Add position information to method node for compact
constructor
408c719 is described below
commit 408c71940ffd1da388be3555e509be754882517f
Author: Daniel Sun <[email protected]>
AuthorDate: Sat Oct 16 22:25:23 2021 +0800
Add position information to method node for compact constructor
---
src/main/java/org/apache/groovy/parser/antlr4/AstBuilder.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/groovy/parser/antlr4/AstBuilder.java
b/src/main/java/org/apache/groovy/parser/antlr4/AstBuilder.java
index 6679cf5..7cb7807 100644
--- a/src/main/java/org/apache/groovy/parser/antlr4/AstBuilder.java
+++ b/src/main/java/org/apache/groovy/parser/antlr4/AstBuilder.java
@@ -2007,7 +2007,7 @@ public class AstBuilder extends
GroovyParserBaseVisitor<Object> {
attachMapConstructorAnnotationToRecord(classNode, parameters);
attachTupleConstructorAnnotationToRecord(classNode, parameters);
- return methodNode;
+ return configureAST(methodNode, ctx);
}
private void attachMapConstructorAnnotationToRecord(ClassNode classNode,
Parameter[] parameters) {