Open-source multiplayer game server compatible with the RuneScape client
https://www.openrs2.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
599 B
17 lines
599 B
package dev.openrs2.deob.analysis
|
|
|
|
import org.objectweb.asm.tree.AbstractInsnNode
|
|
import org.objectweb.asm.tree.analysis.BasicValue
|
|
import org.objectweb.asm.tree.analysis.Value
|
|
|
|
sealed class ConstSourceValue : Value {
|
|
data class Unknown(override val basicValue: BasicValue) : ConstSourceValue()
|
|
data class Insn(override val basicValue: BasicValue, val source: AbstractInsnNode) : ConstSourceValue()
|
|
data class Arg(override val basicValue: BasicValue) : ConstSourceValue()
|
|
|
|
abstract val basicValue: BasicValue
|
|
|
|
override fun getSize(): Int {
|
|
return basicValue.size
|
|
}
|
|
}
|
|
|