ProgramNode

data class ProgramNode(functions: List<FunctionNode>, statements: List<StatementNode>) : ASTNode

Program node

Root level AST node that represents the program in its entirety

Constructors

ProgramNode
Link copied to clipboard
fun ProgramNode(functions: List<FunctionNode>, statements: List<StatementNode>)
Create empty Program node

Functions

component1
Link copied to clipboard
operator fun component1(): List<FunctionNode>
component2
Link copied to clipboard
operator fun component2(): List<StatementNode>
copy
Link copied to clipboard
fun copy(functions: List<FunctionNode>, statements: List<StatementNode>): ProgramNode
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

functions
Link copied to clipboard
val functions: List<FunctionNode>
statements
Link copied to clipboard
val statements: List<StatementNode>