IfStatementNode

data class IfStatementNode(lineNumber: Int, endLineNumber: Int, scope: Int, condition: ExpressionNode, statements: List<StatementNode>, elifs: List<ElifNode>, elseBlock: ElseNode) : StatementBlock

If statement node

Constructors

IfStatementNode
Link copied to clipboard
fun IfStatementNode(lineNumber: Int, endLineNumber: Int, scope: Int, condition: ExpressionNode, statements: List<StatementNode>, elifs: List<ElifNode> = emptyList(), elseBlock: ElseNode)
Create empty If statement node

Functions

component1
Link copied to clipboard
operator fun component1(): Int
component2
Link copied to clipboard
operator fun component2(): Int
component3
Link copied to clipboard
operator fun component3(): Int
component4
Link copied to clipboard
operator fun component4(): ExpressionNode
component5
Link copied to clipboard
operator fun component5(): List<StatementNode>
component6
Link copied to clipboard
operator fun component6(): List<ElifNode>
component7
Link copied to clipboard
operator fun component7(): ElseNode
copy
Link copied to clipboard
fun copy(lineNumber: Int, endLineNumber: Int, scope: Int, condition: ExpressionNode, statements: List<StatementNode>, elifs: List<ElifNode> = emptyList(), elseBlock: ElseNode): IfStatementNode
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

condition
Link copied to clipboard
val condition: ExpressionNode
elifs
Link copied to clipboard
val elifs: List<ElifNode>
elseBlock
Link copied to clipboard
val elseBlock: ElseNode
endLineNumber
Link copied to clipboard
val endLineNumber: Int
lineNumber
Link copied to clipboard
open override val lineNumber: Int
scope
Link copied to clipboard
open override val scope: Int
statements
Link copied to clipboard
open override val statements: List<StatementNode>