mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2026-01-29 22:21:03 +00:00
This commit converts various APIs to Kotlin DSL. BREAKING CHANGE: Various old APIs are removed, and DSL APIs are added instead.
12 lines
347 B
Kotlin
12 lines
347 B
Kotlin
package app.revanced.patcher.extensions
|
|
|
|
import app.revanced.patcher.util.proxy.mutableTypes.MutableMethod
|
|
|
|
/**
|
|
* Create a label for the instruction at given index.
|
|
*
|
|
* @param index The index to create the label for the instruction at.
|
|
* @return The label.
|
|
*/
|
|
fun MutableMethod.newLabel(index: Int) = implementation!!.newLabelForIndex(index)
|