You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2020/12/03 23:41:21 UTC
[groovy] branch master updated: Trivial edit
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 f2ce106 Trivial edit
f2ce106 is described below
commit f2ce1064b356a4ebd41be1ca46336228049352cf
Author: Daniel Sun <su...@apache.org>
AuthorDate: Fri Dec 4 07:41:06 2020 +0800
Trivial edit
---
src/main/java/org/codehaus/groovy/ast/GroovyCodeVisitor.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/main/java/org/codehaus/groovy/ast/GroovyCodeVisitor.java b/src/main/java/org/codehaus/groovy/ast/GroovyCodeVisitor.java
index 8419bd1..dcda3d8 100644
--- a/src/main/java/org/codehaus/groovy/ast/GroovyCodeVisitor.java
+++ b/src/main/java/org/codehaus/groovy/ast/GroovyCodeVisitor.java
@@ -120,6 +120,11 @@ public interface GroovyCodeVisitor {
default void visitEmptyStatement(EmptyStatement statement) {}
+ default void visit(Statement statement) {
+ if (null == statement) return;
+ statement.visit(this);
+ }
+
//--------------------------------------------------------------------------
// expressions
@@ -203,11 +208,6 @@ public interface GroovyCodeVisitor {
if (list != null) list.forEach(expr -> expr.visit(this));
}
- default void visit(Statement statement) {
- if (null == statement) return;
- statement.visit(this);
- }
-
default void visit(Expression expression) {
if (null == expression) return;
expression.visit(this);