ConstructorNode

data class ConstructorNode(lineNumber: Int, type: DataStructureType, arguments: List<ExpressionNode>, initialiser: InitialiserNode) : ExpressionNode

Constructor node

Constructor used to instantiate data structures

Constructors

ConstructorNode
Link copied to clipboard
fun ConstructorNode(lineNumber: Int, type: DataStructureType, arguments: List<ExpressionNode>, initialiser: InitialiserNode)
Create empty Constructor node

Functions

component1
Link copied to clipboard
operator fun component1(): Int
component2
Link copied to clipboard
operator fun component2(): DataStructureType
component3
Link copied to clipboard
operator fun component3(): List<ExpressionNode>
component4
Link copied to clipboard
operator fun component4(): InitialiserNode
copy
Link copied to clipboard
fun copy(lineNumber: Int, type: DataStructureType, arguments: List<ExpressionNode>, initialiser: InitialiserNode): ConstructorNode
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

arguments
Link copied to clipboard
val arguments: List<ExpressionNode>
initialiser
Link copied to clipboard
val initialiser: InitialiserNode
lineNumber
Link copied to clipboard
open override val lineNumber: Int
type
Link copied to clipboard
val type: DataStructureType