groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject [groovy] branch master updated: Add the missing visit methods of ASM
Date Sat, 30 Mar 2019 16:55:25 GMT
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 82cc992  Add the missing visit methods of ASM
82cc992 is described below

commit 82cc9928a6a59cc5a533446b48470a9f02778f57
Author: Daniel Sun <sunlan@apache.org>
AuthorDate: Sun Mar 31 00:46:10 2019 +0800

    Add the missing visit methods of ASM
---
 .../classgen/asm/util/LoggableTextifier.java       | 36 ++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/src/main/java/org/codehaus/groovy/classgen/asm/util/LoggableTextifier.java b/src/main/java/org/codehaus/groovy/classgen/asm/util/LoggableTextifier.java
index 46d22f4..c9a4fc5 100644
--- a/src/main/java/org/codehaus/groovy/classgen/asm/util/LoggableTextifier.java
+++ b/src/main/java/org/codehaus/groovy/classgen/asm/util/LoggableTextifier.java
@@ -479,4 +479,40 @@ public class LoggableTextifier extends Textifier {
         log();
     }
 
+    @Override
+    public void visitNestHost(String nestHost) {
+        super.visitNestHost(nestHost);
+        log();
+    }
+
+    @Override
+    public void visitNestMember(String nestMember) {
+        super.visitNestMember(nestMember);
+        log();
+    }
+
+    @Override
+    public void visitMainClass(String mainClass) {
+        super.visitMainClass(mainClass);
+        log();
+    }
+
+    @Override
+    public void visitPackage(String packaze) {
+        super.visitPackage(packaze);
+        log();
+    }
+
+    @Override
+    public void visitOpen(String packaze, int access, String... modules) {
+        super.visitOpen(packaze, access, modules);
+        log();
+    }
+
+    @Override
+    public Textifier visitAnnotableParameterCount(int parameterCount, boolean visible) {
+        Textifier t = super.visitAnnotableParameterCount(parameterCount, visible);
+        log();
+        return t;
+    }
 }


Mime
View raw message