From cbb7e8c08632d526afd09c84514fa5a6175b3acd Mon Sep 17 00:00:00 2001 From: Graham Date: Wed, 27 May 2020 22:14:15 +0100 Subject: [PATCH] Make AbstractInsnNode::remap public It will be used by Library::remap in the future. Signed-off-by: Graham --- asm/src/main/java/dev/openrs2/asm/ClassNodeRemapper.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asm/src/main/java/dev/openrs2/asm/ClassNodeRemapper.kt b/asm/src/main/java/dev/openrs2/asm/ClassNodeRemapper.kt index 3a67b5f5fa..2058ea0cc4 100644 --- a/asm/src/main/java/dev/openrs2/asm/ClassNodeRemapper.kt +++ b/asm/src/main/java/dev/openrs2/asm/ClassNodeRemapper.kt @@ -55,7 +55,7 @@ fun MethodNode.remap(remapper: ExtendedRemapper, owner: String) { } } -private fun AbstractInsnNode.remap(remapper: ExtendedRemapper) { +fun AbstractInsnNode.remap(remapper: ExtendedRemapper) { when (this) { is FrameNode -> throw UnsupportedOperationException("SKIP_FRAMES and COMPUTE_FRAMES must be used") is FieldInsnNode -> {