refactor: Group related extension functions together

This commit is contained in:
oSumAtrIX 2023-11-28 19:59:08 +01:00
parent 80407b6102
commit 9f28a01c03
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -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].
* *