Refactor + a few improvements to UI #8

Merged
Ecorous merged 5 commits from TheKodeToad/rework-ui into main 2024-06-12 13:37:25 -04:00
Showing only changes of commit 9ed7490c0e - Show all commits

View file

@ -91,6 +91,20 @@ public class AccessWidener {
} }
return super.visitMethod(access, name, descriptor, signature, exceptions); return super.visitMethod(access, name, descriptor, signature, exceptions);
} }
@Override
public void visitInnerClass(String name, String outerName, String innerName, int access) {
Entry e = classMap.get(name);
if (e != null) {
access &= ~(Opcodes.ACC_PRIVATE | Opcodes.ACC_PROTECTED | Opcodes.ACC_PUBLIC);
access |= e.type.access;
}
if (fields.containsKey(name) || methods.containsKey(name) || mutations.containsKey(name)) {
access &= ~(Opcodes.ACC_PRIVATE | Opcodes.ACC_PROTECTED | Opcodes.ACC_PUBLIC);
access |= Opcodes.ACC_PUBLIC;
}
super.visitInnerClass(name, outerName, innerName, access);
}
}; };
reader.accept(mapper, 0); reader.accept(mapper, 0);