Node
Types
AST node that represents a context receiver. The node corresponds to KtContextReceiverList.
Common interface for AST nodes that are main contents of a Kotlin file or a class body.
Common interface for AST nodes that represent expressions.
Common interface for extra nodes.
AST node that represents a formal function parameter of a function declaration. For example, x: Int
in fun f(x: Int)
is a function parameter. The node corresponds to KtParameter inside KtNamedFunction.
AST node that represents an import directive. The node corresponds to KtImportDirective.
Common interface for keywords.
Common interface for AST nodes that can be root node.
AST node that represents whole Kotlin file. The node corresponds to KtFile.
AST node that represents a formal parameter of lambda expression. For example, x
in { x -> ... }
is a lambda parameter. The node corresponds to KtParameter under KtLambdaExpression. Unlike FunctionParameter, this node can have multiple variables, i.e. destructuring declaration.
AST node that represents a package directive. The node corresponds to KtPackageDirective.
Common interface for post-modifiers.
Common interface for AST nodes that have a simple text representation.
Common interface for Declaration, Expression and loop statements.
Common interface for AST nodes that represent types.
AST node that represents an actual type argument. For example, Int
in listOf<Int>()
is a type argument. The node corresponds to KtTypeProjection.
AST node that represents a formal type parameter of a function or a class. For example, T
in fun <T> f()
is a type parameter. The node corresponds to KtTypeParameter.
AST node that represents an actual value argument of a function call. For example, foo(1, 2)
has two value arguments 1
and 2
. The node corresponds to KtValueArgument.
AST node that represents a variable. The node corresponds to KtDestructuringDeclarationEntry, a part of KtProperty, or KtParameter whose child is IDENTIFIER.
Common interface for AST nodes that have annotations.
Common interface for AST nodes that have declarations.
Common interface for AST nodes that have function parameters.
Common interface for AST nodes that have modifiers.
Common interface for AST nodes that have post-modifiers.
Common interface for AST nodes that have statements.
Common interface for AST nodes that have type arguments.
Common interface for AST nodes that have type parameters.
Common interface for AST nodes that have value arguments.