ImmutableKmFunction

data class ImmutableKmFunction : ImmutableKmWithFlags

Immutable representation of KmFunction.

Represents a Kotlin function declaration.

Functions

toMutable
Link copied to clipboard
fun toMutable(): KmFunction

Properties

contract
Link copied to clipboard
val contract: ImmutableKmContract?
Contract of the function.
flags
Link copied to clipboard
open override val flags: Flags
Function flags, consisting of Flag.HAS_ANNOTATIONS, visibility flag, modality flag and Flag.Function flags.
lambdaClassOriginName
Link copied to clipboard
val lambdaClassOriginName: String?
JVM internal name of the original class the lambda class for this function is copied from.
name
Link copied to clipboard
val name: String
The name of the function
receiverParameterType
Link copied to clipboard
val receiverParameterType: ImmutableKmType?
Type of the receiver of the function, if this is an extension function.
returnType
Link copied to clipboard
val returnType: ImmutableKmType
Return type of the function.
signature
Link copied to clipboard
val signature: JvmMethodSignature?
JVM signature of the function, or null if the JVM signature of this function is unknown.
typeParameters
Link copied to clipboard
val typeParameters: List<ImmutableKmTypeParameter>
Type parameters of the function.
valueParameters
Link copied to clipboard
val valueParameters: List<ImmutableKmValueParameter>
Value parameters of the function.
versionRequirements
Link copied to clipboard
val versionRequirements: List<ImmutableKmVersionRequirement>
Version requirements on the function.

Extensions

isDeclaration
Link copied to clipboard
val ImmutableKmFunction.isDeclaration: Boolean
isDelegation
Link copied to clipboard
val ImmutableKmFunction.isDelegation: Boolean
isExpect
Link copied to clipboard
val ImmutableKmFunction.isExpect: Boolean
isExternal
Link copied to clipboard
val ImmutableKmFunction.isExternal: Boolean
isFakeOverride
Link copied to clipboard
val ImmutableKmFunction.isFakeOverride: Boolean
isInfix
Link copied to clipboard
val ImmutableKmFunction.isInfix: Boolean
isInline
Link copied to clipboard
val ImmutableKmFunction.isInline: Boolean
isOperator
Link copied to clipboard
val ImmutableKmFunction.isOperator: Boolean
isSuspend
Link copied to clipboard
val ImmutableKmFunction.isSuspend: Boolean
isSynthesized
Link copied to clipboard
val ImmutableKmFunction.isSynthesized: Boolean
isTailRec
Link copied to clipboard
val ImmutableKmFunction.isTailRec: Boolean