diff --git a/src/main/kotlin/app/revanced/patcher/extensions/InstructionExtensions.kt b/src/main/kotlin/app/revanced/patcher/extensions/InstructionExtensions.kt index 72d1410..c670bb6 100644 --- a/src/main/kotlin/app/revanced/patcher/extensions/InstructionExtensions.kt +++ b/src/main/kotlin/app/revanced/patcher/extensions/InstructionExtensions.kt @@ -323,4 +323,10 @@ object InstructionExtensions { */ @Suppress("UNCHECKED_CAST") fun MutableMethod.getInstruction(index: Int): T = implementation!!.getInstruction(index) + + /** + * Get the instructions of a method. + * @return The instructions. + */ + fun MutableMethod.getInstructions(): MutableList = implementation!!.instructions } \ No newline at end of file