IfExpression
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.
Constructors
Link copied to clipboard
constructor(lPar: Node.Keyword.LPar, condition: Node.Expression, rPar: Node.Keyword.RPar, body: Node.Expression, elseBody: Node.Expression?, supplement: NodeSupplement = NodeSupplement())
Properties
Link copied to clipboard
body expression.
Link copied to clipboard
condition expression.
Link copied to clipboard
else body expression if exists, otherwise null.
Link copied to clipboard
left parenthesis of the condition.
Link copied to clipboard
right parenthesis of the condition.
Link copied to clipboard
Supplemental data for the node.