mirror of
https://github.com/irmen/prog8.git
synced 2024-10-25 00:24:16 +00:00
can be val
This commit is contained in:
parent
0a4de45453
commit
5179562fb2
@ -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)
|
||||||
}
|
}
|
||||||
|
@ -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()
|
||||||
|
@ -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()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user