forked from openrs2/openrs2
We don't need to track the class version and maxStack value: the Library::remap will already have access to them (and always needs to, as it has to fiddle with {Class,Field,Method}Nodes to actually move the field). Signed-off-by: Graham <gpe@openrs2.dev>
parent
35fea8f293
commit
4674dfb5ba
@ -1,14 +0,0 @@ |
||||
package dev.openrs2.asm.classpath |
||||
|
||||
import dev.openrs2.asm.MemberRef |
||||
import org.objectweb.asm.Opcodes |
||||
import org.objectweb.asm.tree.AbstractInsnNode |
||||
import org.objectweb.asm.tree.FieldInsnNode |
||||
|
||||
class FieldInitializer(val instructions: List<AbstractInsnNode>, val version: Int, val maxStack: Int) { |
||||
val dependencies = instructions.asSequence() |
||||
.filterIsInstance<FieldInsnNode>() |
||||
.filter { it.opcode == Opcodes.GETSTATIC } |
||||
.map(::MemberRef) |
||||
.toSet() |
||||
} |
Loading…
Reference in new issue