TryExpression

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.

Constructors

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

Types

Link copied to clipboard
data class CatchClause(val lPar: Node.Keyword.LPar, val parameters: List<Node.FunctionParameter>, val rPar: Node.Keyword.RPar, val block: Node.Expression.BlockExpression, val supplement: NodeSupplement = NodeSupplement()) : Node, Node.WithFunctionParameters

AST node that represents a catch clause. The node corresponds to KtCatchClause.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

finally block expression if exists, otherwise null.

Link copied to clipboard
open override val supplement: NodeSupplement

Supplemental data for the node.