ImmutableKmEffectExpression

Immutable representation of KmEffectExpression.

Represents an effect expression, the contents of an effect (a part of the contract of a Kotlin function).

Contracts are an internal feature of the standard Kotlin library, and their behavior and/or binary format may change in a subsequent release.

data class ImmutableKmEffectExpression : ImmutableKmWithFlags

Functions

component1
Link copied to clipboard
operator fun component1(): Flags
component2
Link copied to clipboard
operator fun component2(): Int?
component3
Link copied to clipboard
operator fun component3(): KmConstantValue?
component4
Link copied to clipboard
operator fun component4(): ImmutableKmType?
component5
Link copied to clipboard
operator fun component5(): List<ImmutableKmEffectExpression>
component6
Link copied to clipboard
operator fun component6(): List<ImmutableKmEffectExpression>
copy
Link copied to clipboard
fun copy(flags: Flags, parameterIndex: Int?, constantValue: KmConstantValue?, isInstanceType: ImmutableKmType?, andArguments: List<ImmutableKmEffectExpression>, orArguments: List<ImmutableKmEffectExpression>): ImmutableKmEffectExpression
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toMutable
Link copied to clipboard
fun toMutable(): KmEffectExpression
toString
Link copied to clipboard
open override fun toString(): String

Properties

andArguments
Link copied to clipboard

Arguments of an &&-expression. If this list is non-empty, the resulting effect expression is a conjunction of this expression and elements of the list.

val andArguments: List<ImmutableKmEffectExpression>
constantValue
Link copied to clipboard

Constant value used in the effect expression.

val constantValue: KmConstantValue?
flags
Link copied to clipboard

Effect expression flags, consisting of Flag.EffectExpression flags.

open override val flags: Flags
isInstanceType
Link copied to clipboard

Type used as the target of an is-expression in the effect expression.

val isInstanceType: ImmutableKmType?
orArguments
Link copied to clipboard

Arguments of an ||-expression. If this list is non-empty, the resulting effect expression is a disjunction of this expression and elements of the list.

val orArguments: List<ImmutableKmEffectExpression>
parameterIndex
Link copied to clipboard

Optional 1-based index of the value parameter of the function, for effects which assert something about the function parameters. The index 0 means the extension receiver parameter.

val parameterIndex: Int?