Types

Link copied to clipboard
data class AnnotatedExpression(val annotationSets: List<Node.Modifier.AnnotationSet>, val statement: Node.Statement, val supplement: NodeSupplement = NodeSupplement()) : Node.Expression, Node.WithAnnotationSets

AST node that represents an expression prefixed by annotation sets. The node corresponds to KtAnnotatedExpression.

Link copied to clipboard
data class AnonymousFunctionExpression(val function: Node.Declaration.FunctionDeclaration, val supplement: NodeSupplement = NodeSupplement()) : Node.Expression

AST node that represents an anonymous function expression. The node corresponds to KtNamedFunction in expression context.

Link copied to clipboard
data class BinaryExpression(val lhs: Node.Expression, val operator: Node.Expression.BinaryExpression.BinaryOperator, val rhs: Node.Expression, val supplement: NodeSupplement = NodeSupplement()) : Node.Expression

AST node that represents a binary expression. The node corresponds to KtBinaryExpression or KtQualifiedExpression.

Link copied to clipboard
data class BinaryTypeExpression(val lhs: Node.Expression, val operator: Node.Expression.BinaryTypeExpression.BinaryTypeOperator, val rhs: Node.Type, val supplement: NodeSupplement = NodeSupplement()) : Node.Expression

AST node that represents a binary type expression. The node corresponds to KtBinaryExpressionWithTypeRHS or KtIsExpression.

Link copied to clipboard
data class BlockExpression(val statements: List<Node.Statement>, val supplement: NodeSupplement = NodeSupplement()) : Node.Expression, Node.WithStatements

AST node that represents a block expression. The node corresponds to KtBlockExpression.

Link copied to clipboard
data class BooleanLiteralExpression(val text: String, val supplement: NodeSupplement = NodeSupplement()) : Node.Expression.ConstantLiteralExpression

AST node that represents a boolean literal expression. The node corresponds to KtConstantExpression whose expressionType is KtNodeTypes.BOOLEAN_CONSTANT.

Link copied to clipboard
data class BreakExpression(val label: Node.Expression.NameExpression?, val supplement: NodeSupplement = NodeSupplement()) : Node.Expression, Node.Expression.WithLabel

AST node that represents a break expression. The node corresponds to KtBreakExpression.

Link copied to clipboard

AST node that represents a callable reference expression. The node corresponds to KtCallableReferenceExpression.

Link copied to clipboard
data class CallExpression(val calleeExpression: Node.Expression, val lAngle: Node.Keyword.Less?, val typeArguments: List<Node.TypeArgument>, val rAngle: Node.Keyword.Greater?, val lPar: Node.Keyword.LPar?, val arguments: List<Node.ValueArgument>, val rPar: Node.Keyword.RPar?, val lambdaArgument: Node.Expression?, val supplement: NodeSupplement = NodeSupplement()) : Node.Expression, Node.WithTypeArguments, Node.WithValueArguments

AST node that represents a call expression. The node corresponds to KtCallElement.

Link copied to clipboard
data class CharacterLiteralExpression(val text: String, val supplement: NodeSupplement = NodeSupplement()) : Node.Expression.ConstantLiteralExpression

AST node that represents a character literal expression. The node corresponds to KtConstantExpression whose expressionType is KtNodeTypes.CHARACTER_CONSTANT.

Link copied to clipboard
data class ClassLiteralExpression(val lhs: Node.Expression, val questionMarks: List<Node.Keyword.Question>, val supplement: NodeSupplement = NodeSupplement()) : Node.Expression.DoubleColonExpression

AST node that represents a class literal expression. The node corresponds to KtClassLiteralExpression.

Link copied to clipboard
data class CollectionLiteralExpression(val expressions: List<Node.Expression>, val supplement: NodeSupplement = NodeSupplement()) : Node.Expression

AST node that represents a collection literal expression. The node corresponds to KtCollectionLiteralExpression.

Link copied to clipboard

Common interface for constant literal expression. The node corresponds to KtConstantExpression.

Link copied to clipboard

AST node that represents a continue expression. The node corresponds to KtContinueExpression.

Link copied to clipboard

Common interface for CallableReferenceExpression and ClassLiteralExpression. The node corresponds to KtDoubleColonExpression.

Link copied to clipboard
data class IfExpression(val lPar: Node.Keyword.LPar, val condition: Node.Expression, val rPar: Node.Keyword.RPar, val body: Node.Expression, val elseBody: Node.Expression?, val supplement: NodeSupplement = NodeSupplement()) : Node.Expression

AST node that represents an if expression. The node corresponds to KtIfExpression.

Link copied to clipboard
data class IndexedAccessExpression(val expression: Node.Expression, val indices: List<Node.Expression>, val supplement: NodeSupplement = NodeSupplement()) : Node.Expression

AST node that represents an expression followed by index access. The node corresponds to KtArrayAccessExpression.

Link copied to clipboard
data class IntegerLiteralExpression(val text: String, val supplement: NodeSupplement = NodeSupplement()) : Node.Expression.ConstantLiteralExpression

AST node that represents an integer literal expression. The node corresponds to KtConstantExpression whose expressionType is KtNodeTypes.INTEGER_CONSTANT.

Link copied to clipboard
data class LabeledExpression(val label: Node.Expression.NameExpression, val statement: Node.Statement, val supplement: NodeSupplement = NodeSupplement()) : Node.Expression

AST node that represents an expression prefixed by a label. The node corresponds to KtLabeledExpression.

Link copied to clipboard
data class LambdaExpression(val parameters: List<Node.LambdaParameter>, val arrow: Node.Keyword.Arrow?, val statements: List<Node.Statement>, val supplement: NodeSupplement = NodeSupplement()) : Node.Expression, Node.WithStatements

AST node that represents a lambda expression. The node corresponds to KtLambdaExpression.

Link copied to clipboard
data class NameExpression(val text: String, val supplement: NodeSupplement = NodeSupplement()) : Node.Expression, Node.Expression.BinaryExpression.BinaryOperator

AST node that represents a name expression, i.e. an identifier. The node corresponds to KtValueArgumentName, KtSimpleNameExpression or PsiElement whose elementType is IDENTIFIER.

Link copied to clipboard
data class NullLiteralExpression(val supplement: NodeSupplement = NodeSupplement()) : Node.Expression.ConstantLiteralExpression

AST node that represents a null literal expression. The node corresponds to KtConstantExpression whose expressionType is KtNodeTypes.NULL.

Link copied to clipboard
data class ObjectLiteralExpression(val declaration: Node.Declaration.ObjectDeclaration, val supplement: NodeSupplement = NodeSupplement()) : Node.Expression

AST node that represents an object literal expression. The node corresponds to KtObjectLiteralExpression.

Link copied to clipboard
data class ParenthesizedExpression(val innerExpression: Node.Expression, val supplement: NodeSupplement = NodeSupplement()) : Node.Expression

AST node that represents an expression surrounded by parentheses. The node corresponds to KtParenthesizedExpression.

Link copied to clipboard
data class PostfixUnaryExpression(val expression: Node.Expression, val operator: Node.Expression.UnaryExpression.UnaryOperator, val supplement: NodeSupplement = NodeSupplement()) : Node.Expression.UnaryExpression

AST node that represents a postfix unary expression. The node corresponds to KtPostfixExpression.

Link copied to clipboard
data class PrefixUnaryExpression(val operator: Node.Expression.UnaryExpression.UnaryOperator, val expression: Node.Expression, val supplement: NodeSupplement = NodeSupplement()) : Node.Expression.UnaryExpression

AST node that represents a prefix unary expression. The node corresponds to KtPrefixExpression.

Link copied to clipboard
data class RealLiteralExpression(val text: String, val supplement: NodeSupplement = NodeSupplement()) : Node.Expression.ConstantLiteralExpression

AST node that represents a real number literal expression. The node corresponds to KtConstantExpression whose expressionType is KtNodeTypes.FLOAT_CONSTANT.

Link copied to clipboard
data class ReturnExpression(val label: Node.Expression.NameExpression?, val expression: Node.Expression?, val supplement: NodeSupplement = NodeSupplement()) : Node.Expression, Node.Expression.WithLabel

AST node that represents a return expression. The node corresponds to KtReturnExpression.

Link copied to clipboard
data class StringLiteralExpression(val entries: List<Node.Expression.StringLiteralExpression.StringEntry>, val raw: Boolean, val supplement: NodeSupplement = NodeSupplement()) : Node.Expression

AST node that represents a string literal expression. The node corresponds to KtStringTemplateExpression.

Link copied to clipboard
data class SuperExpression(val typeArgument: Node.TypeArgument?, val label: Node.Expression.NameExpression?, val supplement: NodeSupplement = NodeSupplement()) : Node.Expression, Node.Expression.WithLabel

AST node that represents a super expression. The node corresponds to KtSuperExpression or KtConstructorDelegationReferenceExpression whose text is "super".

Link copied to clipboard
data class ThisExpression(val label: Node.Expression.NameExpression?, val supplement: NodeSupplement = NodeSupplement()) : Node.Expression, Node.Expression.WithLabel

AST node that represents a "this" expression. The node corresponds to KtThisExpression or KtConstructorDelegationReferenceExpression whose text is "this".

Link copied to clipboard
data class ThrowExpression(val expression: Node.Expression, val supplement: NodeSupplement = NodeSupplement()) : Node.Expression

AST node that represents a throw expression. The node corresponds to KtThrowExpression.

Link copied to clipboard
data class TryExpression(val block: Node.Expression.BlockExpression, val catchClauses: List<Node.Expression.TryExpression.CatchClause>, val finallyBlock: Node.Expression.BlockExpression?, val supplement: NodeSupplement = NodeSupplement()) : Node.Expression

AST node that represents a try expression. The node corresponds to KtTryExpression.

Link copied to clipboard

Common interface for PrefixUnaryExpression and PostfixUnaryExpression. The node corresponds to KtUnaryExpression

Link copied to clipboard
data class WhenExpression(val whenKeyword: Node.Keyword.When, val subject: Node.Expression.WhenExpression.WhenSubject?, val branches: List<Node.Expression.WhenExpression.WhenBranch>, val supplement: NodeSupplement = NodeSupplement()) : Node.Expression

AST node that represents a when expression. The node corresponds to KtWhenExpression.

Link copied to clipboard
interface WithLabel

Common interface for AST nodes that can have a label.

Properties

Link copied to clipboard

Supplemental data for the node.