Visit code attributes without visiting code itself
From Tagir Valeev (IntelliJ)
Hello!
Is it possible to have a MethodVisitor that visits code attributes (in particular, visitLocalVariable) but without spending time on visiting the code itself? When we build the index of class files in the project, we need to get all the methods with parameter names and annotations but we are not interested in method code. If the class was compiled with debug info but without -parameters, then we take parameter names from debug info. Unfortunately, visitLocalVariable is not called in SKIP_CODE mode, so we have to omit this option and ASM spends quite a significant amount of time decoding the instructions despite we don't need them. Probably it's possible to introduce another mode that skips the code itself but visits the code attributes?