can be val

This commit is contained in:
Irmen de Jong 2023-12-26 19:39:02 +01:00
parent 0a4de45453
commit 5179562fb2
3 changed files with 5 additions and 5 deletions

View File

@ -28,7 +28,7 @@ object ParentSentinel : Node {
interface IFunctionCall { interface IFunctionCall {
var target: IdentifierReference var target: IdentifierReference
var args: MutableList<Expression> val args: MutableList<Expression>
val position: Position val position: Position
var parent: Node // will be linked correctly later (late init) var parent: Node // will be linked correctly later (late init)
} }

View File

@ -1047,7 +1047,7 @@ data class IdentifierReference(val nameInSource: List<String>, override val posi
} }
class FunctionCallExpression(override var target: IdentifierReference, class FunctionCallExpression(override var target: IdentifierReference,
override var args: MutableList<Expression>, override val args: MutableList<Expression>,
override val position: Position) : Expression(), IFunctionCall { override val position: Position) : Expression(), IFunctionCall {
override lateinit var parent: Node override lateinit var parent: Node
@ -1204,7 +1204,7 @@ class ContainmentCheck(var element: Expression,
} }
class BuiltinFunctionCall(override var target: IdentifierReference, class BuiltinFunctionCall(override var target: IdentifierReference,
override var args: MutableList<Expression>, override val args: MutableList<Expression>,
override val position: Position) : Expression(), IFunctionCall { override val position: Position) : Expression(), IFunctionCall {
val name = target.nameInSource.single() val name = target.nameInSource.single()

View File

@ -663,7 +663,7 @@ class Jump(var address: UInt?,
} }
class FunctionCallStatement(override var target: IdentifierReference, class FunctionCallStatement(override var target: IdentifierReference,
override var args: MutableList<Expression>, override val args: MutableList<Expression>,
val void: Boolean, val void: Boolean,
override val position: Position) : Statement(), IFunctionCall { override val position: Position) : Statement(), IFunctionCall {
override lateinit var parent: Node override lateinit var parent: Node
@ -1134,7 +1134,7 @@ class DirectMemoryWrite(var addressExpression: Expression, override val position
// this is meant to eventually (?) be able to not have any FunctionCallStatement nodes to worry about anymore // this is meant to eventually (?) be able to not have any FunctionCallStatement nodes to worry about anymore
// However, if/when the codegen is moved over to use the new CodeAst (PtProgram etc. etc.) this is all moot. // However, if/when the codegen is moved over to use the new CodeAst (PtProgram etc. etc.) this is all moot.
class BuiltinFunctionCallStatement(override var target: IdentifierReference, class BuiltinFunctionCallStatement(override var target: IdentifierReference,
override var args: MutableList<Expression>, override val args: MutableList<Expression>,
override val position: Position) : Statement(), IFunctionCall { override val position: Position) : Statement(), IFunctionCall {
val name: String = target.nameInSource.single() val name: String = target.nameInSource.single()