Drop KParameter.isNoinline, KParameter.isCrossinline
There seems to be no valuable use cases for them at the moment
This commit is contained in:
@@ -78,22 +78,6 @@ public interface KParameter : KAnnotatedElement {
|
||||
@SinceKotlin("1.1")
|
||||
public val isVararg: Boolean
|
||||
|
||||
/**
|
||||
* `true` if this parameter is `noinline`.
|
||||
* See the [Kotlin language documentation](https://kotlinlang.org/docs/reference/inline-functions.html#noinline)
|
||||
* for more information.
|
||||
*/
|
||||
@SinceKotlin("1.1")
|
||||
public val isNoinline: Boolean
|
||||
|
||||
/**
|
||||
* `true` if this parameter is `crossinline`.
|
||||
* See the [Kotlin language documentation](https://kotlinlang.org/docs/reference/inline-functions.html#non-local-returns)
|
||||
* for more information.
|
||||
*/
|
||||
@SinceKotlin("1.1")
|
||||
public val isCrossinline: Boolean
|
||||
|
||||
/**
|
||||
* `true` if this parameter is `coroutine`.
|
||||
*/
|
||||
|
||||
@@ -48,12 +48,6 @@ internal class KParameterImpl(
|
||||
override val isVararg: Boolean
|
||||
get() = descriptor.let { it is ValueParameterDescriptor && it.varargElementType != null }
|
||||
|
||||
override val isNoinline: Boolean
|
||||
get() = descriptor.let { it is ValueParameterDescriptor && it.isNoinline }
|
||||
|
||||
override val isCrossinline: Boolean
|
||||
get() = descriptor.let { it is ValueParameterDescriptor && it.isCrossinline }
|
||||
|
||||
override val isCoroutine: Boolean
|
||||
get() = descriptor.let { it is ValueParameterDescriptor && it.isCoroutine }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user