ClassLiteralExpression

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.

Constructors

Link copied to clipboard
constructor(lhs: Node.Expression, questionMarks: List<Node.Keyword.Question>, supplement: NodeSupplement = NodeSupplement())

Properties

Link copied to clipboard
open override val lhs: Node.Expression

left-hand side expression.

Link copied to clipboard

list of question marks after lhs.

Link copied to clipboard
open override val supplement: NodeSupplement

Supplemental data for the node.

Functions

Link copied to clipboard
open fun lhsAsType(): Node.Type?

Convert lhs to Type if possible. Otherwise, return null.