mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-11-14 04:13:49 +00:00
41 lines
1.3 KiB
Kotlin
41 lines
1.3 KiB
Kotlin
// THIS CODE HAVE BEEN GENERATED AUTOMATICALLY
|
|
// TO REGENERATE IT JUST DELETE FILE
|
|
// ORIGINAL FILE: Test.kt
|
|
@file:Suppress(
|
|
"unused",
|
|
"RemoveRedundantQualifierName",
|
|
"RedundantVisibilityModifier",
|
|
"NOTHING_TO_INLINE",
|
|
"UNCHECKED_CAST",
|
|
"OPT_IN_USAGE",
|
|
)
|
|
|
|
package dev.inmo.micro_utils.ksp.classcasts.generator.test
|
|
|
|
import dev.inmo.micro_utils.ksp.classcasts.generator.test.Test
|
|
import kotlin.Suppress
|
|
|
|
public inline fun Test.aOrNull(): Test.A? = this as?
|
|
dev.inmo.micro_utils.ksp.classcasts.generator.test.Test.A
|
|
|
|
public inline fun Test.aOrThrow(): Test.A = this as
|
|
dev.inmo.micro_utils.ksp.classcasts.generator.test.Test.A
|
|
|
|
public inline fun <T> Test.ifA(block: (Test.A) -> T): T? = aOrNull() ?.let(block)
|
|
|
|
public inline fun Test.cOrNull(): Test.C? = this as?
|
|
dev.inmo.micro_utils.ksp.classcasts.generator.test.Test.C
|
|
|
|
public inline fun Test.cOrThrow(): Test.C = this as
|
|
dev.inmo.micro_utils.ksp.classcasts.generator.test.Test.C
|
|
|
|
public inline fun <T> Test.ifC(block: (Test.C) -> T): T? = cOrNull() ?.let(block)
|
|
|
|
public inline fun Test.dOrNull(): Test.D? = this as?
|
|
dev.inmo.micro_utils.ksp.classcasts.generator.test.Test.D
|
|
|
|
public inline fun Test.dOrThrow(): Test.D = this as
|
|
dev.inmo.micro_utils.ksp.classcasts.generator.test.Test.D
|
|
|
|
public inline fun <T> Test.ifD(block: (Test.D) -> T): T? = dOrNull() ?.let(block)
|