FunctionNode

data class FunctionNode(lineNumber: Int, scope: Int, identifier: String, parameters: List<ParameterNode>, statements: List<StatementNode>) : CodeNode

Function node

Represents a function declaration

Constructors

FunctionNode
Link copied to clipboard
fun FunctionNode(lineNumber: Int, scope: Int, identifier: String, parameters: List<ParameterNode>, statements: List<StatementNode>)
Create empty Function 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(): String
component4
Link copied to clipboard
operator fun component4(): List<ParameterNode>
component5
Link copied to clipboard
operator fun component5(): List<StatementNode>
copy
Link copied to clipboard
fun copy(lineNumber: Int, scope: Int, identifier: String, parameters: List<ParameterNode>, statements: List<StatementNode>): FunctionNode
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

identifier
Link copied to clipboard
val identifier: String
lineNumber
Link copied to clipboard
open override val lineNumber: Int
parameters
Link copied to clipboard
val parameters: List<ParameterNode>
scope
Link copied to clipboard
val scope: Int
statements
Link copied to clipboard
val statements: List<StatementNode>