mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-04-30 05:14:26 +02:00
refactor: Group related extension functions together
This commit is contained in:
parent
80407b6102
commit
9f28a01c03
@ -11,13 +11,6 @@ import com.android.tools.smali.dexlib2.AccessFlags
|
|||||||
*/
|
*/
|
||||||
fun MutableMethod.newLabel(index: Int) = implementation!!.newLabelForIndex(index)
|
fun MutableMethod.newLabel(index: Int) = implementation!!.newLabelForIndex(index)
|
||||||
|
|
||||||
/**
|
|
||||||
* Perform a bitwise OR operation between two [AccessFlags].
|
|
||||||
*
|
|
||||||
* @param other The other [AccessFlags] to perform the operation with.
|
|
||||||
*/
|
|
||||||
infix fun AccessFlags.or(other: AccessFlags) = value or other.value
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Perform a bitwise OR operation between an [AccessFlags] and an [Int].
|
* Perform a bitwise OR operation between an [AccessFlags] and an [Int].
|
||||||
*
|
*
|
||||||
@ -25,6 +18,13 @@ infix fun AccessFlags.or(other: AccessFlags) = value or other.value
|
|||||||
*/
|
*/
|
||||||
infix fun Int.or(other: AccessFlags) = this or other.value
|
infix fun Int.or(other: AccessFlags) = this or other.value
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Perform a bitwise OR operation between two [AccessFlags].
|
||||||
|
*
|
||||||
|
* @param other The other [AccessFlags] to perform the operation with.
|
||||||
|
*/
|
||||||
|
infix fun AccessFlags.or(other: AccessFlags) = value or other.value
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Perform a bitwise OR operation between an [Int] and an [AccessFlags].
|
* Perform a bitwise OR operation between an [Int] and an [AccessFlags].
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user