KmFunction

class KmFunction : KmFunctionVisitor

Represents a Kotlin function declaration.

Various function attributes can be read and manipulated via extension properties, such as KmFunction.visibility or KmFunction.isSuspend.

Constructors

Link copied to clipboard
constructor(name: String)

Properties

Link copied to clipboard

Types of context receivers of the function.

Link copied to clipboard

Contract of the function.

Link copied to clipboard

Indicates that the corresponding function has at least one annotation.

Link copied to clipboard

Indicates that the corresponding function has non-stable parameter names, i.e., cannot be called with named arguments.

Link copied to clipboard

Indicates that the corresponding function is expect.

Link copied to clipboard

Indicates that the corresponding function is external.

Link copied to clipboard

Indicates that the corresponding function is infix.

Link copied to clipboard

Indicates that the corresponding function is inline.

Link copied to clipboard

Indicates that the corresponding function is operator.

Link copied to clipboard

Indicates that the corresponding function is suspend.

Link copied to clipboard

Indicates that the corresponding function is tailrec.

Link copied to clipboard

Represents kind of the corresponding function.

Link copied to clipboard

JVM internal name of the original class the lambda class for this function is copied from. This value is set for lambdas copied from bodies of inline functions to the use site by the Kotlin compiler.

Link copied to clipboard

Represents modality of the corresponding function.

Link copied to clipboard

the name of the function

Link copied to clipboard

Type of the receiver of the function, if this is an extension function.

Link copied to clipboard
lateinit var returnType: KmType

Return type of the function.

Link copied to clipboard

JVM signature of the function, or null if the JVM signature of this function is unknown.

Link copied to clipboard

Type parameters of the function.

Link copied to clipboard

Value parameters of the function.

Link copied to clipboard

Version requirements on the function.

Link copied to clipboard

Represents visibility of the corresponding function.

Functions

Link copied to clipboard
open fun visitEnd()

Visits the end of the function.