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 2021/11/07 13:09:16 UTC
[groovy] branch master updated: Attach `@CompileStatic` to
`CheckingVisitor`
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 bcebfb0 Attach `@CompileStatic` to `CheckingVisitor`
bcebfb0 is described below
commit bcebfb0ed8689e2a63f2676c4324768fa637db7b
Author: Daniel Sun <su...@apache.org>
AuthorDate: Sun Nov 7 21:08:43 2021 +0800
Attach `@CompileStatic` to `CheckingVisitor`
---
.../main/groovy/org/apache/groovy/typecheckers/CheckingVisitor.groovy | 2 ++
1 file changed, 2 insertions(+)
diff --git a/subprojects/groovy-typecheckers/src/main/groovy/org/apache/groovy/typecheckers/CheckingVisitor.groovy b/subprojects/groovy-typecheckers/src/main/groovy/org/apache/groovy/typecheckers/CheckingVisitor.groovy
index c58a2e2..82e602d 100644
--- a/subprojects/groovy-typecheckers/src/main/groovy/org/apache/groovy/typecheckers/CheckingVisitor.groovy
+++ b/subprojects/groovy-typecheckers/src/main/groovy/org/apache/groovy/typecheckers/CheckingVisitor.groovy
@@ -18,6 +18,7 @@
*/
package org.apache.groovy.typecheckers
+import groovy.transform.CompileStatic
import org.codehaus.groovy.ast.ClassCodeVisitorSupport
import org.codehaus.groovy.ast.FieldNode
import org.codehaus.groovy.ast.Variable
@@ -26,6 +27,7 @@ import org.codehaus.groovy.ast.expr.Expression
import org.codehaus.groovy.ast.expr.VariableExpression
import org.codehaus.groovy.control.SourceUnit
+@CompileStatic
class CheckingVisitor extends ClassCodeVisitorSupport {
protected final Map<Expression, Expression> localConstVars = new HashMap<>()