mirror of
https://github.com/irmen/prog8.git
synced 2024-09-07 19:54:26 +00:00
fix some unneeded open classes
This commit is contained in:
parent
79405f47f6
commit
98d25fc4e9
@ -244,8 +244,8 @@ interface Node {
|
|||||||
|
|
||||||
|
|
||||||
open class Module(final override var statements: MutableList<Statement>,
|
open class Module(final override var statements: MutableList<Statement>,
|
||||||
final override val position: Position,
|
final override val position: Position,
|
||||||
val source: SourceCode) : Node, INameScope {
|
val source: SourceCode) : Node, INameScope {
|
||||||
|
|
||||||
override lateinit var parent: Node
|
override lateinit var parent: Node
|
||||||
lateinit var program: Program
|
lateinit var program: Program
|
||||||
|
@ -130,7 +130,7 @@ data class Label(override val name: String, override val position: Position) : S
|
|||||||
override fun toString()= "Label(name=$name, pos=$position)"
|
override fun toString()= "Label(name=$name, pos=$position)"
|
||||||
}
|
}
|
||||||
|
|
||||||
open class Return(var value: Expression?, final override val position: Position) : Statement() {
|
class Return(var value: Expression?, final override val position: Position) : Statement() {
|
||||||
override lateinit var parent: Node
|
override lateinit var parent: Node
|
||||||
|
|
||||||
override fun linkParents(parent: Node) {
|
override fun linkParents(parent: Node) {
|
||||||
@ -171,7 +171,7 @@ enum class ZeropageWish {
|
|||||||
NOT_IN_ZEROPAGE
|
NOT_IN_ZEROPAGE
|
||||||
}
|
}
|
||||||
|
|
||||||
open class VarDecl(val type: VarDeclType,
|
class VarDecl(val type: VarDeclType,
|
||||||
private val declaredDatatype: DataType,
|
private val declaredDatatype: DataType,
|
||||||
val zeropage: ZeropageWish,
|
val zeropage: ZeropageWish,
|
||||||
var arraysize: ArrayIndex?,
|
var arraysize: ArrayIndex?,
|
||||||
@ -299,7 +299,7 @@ class ArrayIndex(var indexExpr: Expression,
|
|||||||
override fun copy() = ArrayIndex(indexExpr.copy(), position)
|
override fun copy() = ArrayIndex(indexExpr.copy(), position)
|
||||||
}
|
}
|
||||||
|
|
||||||
open class Assignment(var target: AssignTarget, var value: Expression, final override val position: Position) : Statement() {
|
class Assignment(var target: AssignTarget, var value: Expression, final override val position: Position) : Statement() {
|
||||||
override lateinit var parent: Node
|
override lateinit var parent: Node
|
||||||
|
|
||||||
override fun linkParents(parent: Node) {
|
override fun linkParents(parent: Node) {
|
||||||
|
Loading…
Reference in New Issue
Block a user