From 3dd9c42aa29d4387598953520a2289779652134e Mon Sep 17 00:00:00 2001 From: Vincent Rasquier Date: Thu, 14 Dec 2017 17:35:18 +0100 Subject: [PATCH] Add field to test --- main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.go b/main.go index 023b478..5b9299c 100644 --- a/main.go +++ b/main.go @@ -30,6 +30,10 @@ func main() { OnVisit: func(version, access int, name, signature, superName string, interfaces []string) { fmt.Println(name, signature, superName, interfaces) }, + OnVisitField: func(access int, name, descriptor, signature string, value interface{}) asm.FieldVisitor { + fmt.Println(name) + return nil + }, OnVisitMethod: func(access int, name, descriptor, signature string, exceptions []string) asm.MethodVisitor { fmt.Println(name) return nil