mirror of
https://github.com/KarolS/millfork.git
synced 2024-11-04 09:04:33 +00:00
Fix environment namecheck for Z80
This commit is contained in:
parent
caec1bdc1b
commit
704ae17d30
@ -240,7 +240,7 @@ class Environment(val parent: Option[Environment], val prefix: String, val cpuFa
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private def root: Environment = parent.fold(this)(_.root)
|
def root: Environment = parent.fold(this)(_.root)
|
||||||
|
|
||||||
def maybeGet[T <: Thing : Manifest](name: String): Option[T] = {
|
def maybeGet[T <: Thing : Manifest](name: String): Option[T] = {
|
||||||
if (things.contains(name)) {
|
if (things.contains(name)) {
|
||||||
@ -1108,6 +1108,7 @@ class Environment(val parent: Option[Environment], val prefix: String, val cpuFa
|
|||||||
|
|
||||||
def nameCheck(node: Node): Unit = node match {
|
def nameCheck(node: Node): Unit = node match {
|
||||||
case _:MosAssemblyStatement => ()
|
case _:MosAssemblyStatement => ()
|
||||||
|
case _:Z80AssemblyStatement => ()
|
||||||
case _:DeclarationStatement => ()
|
case _:DeclarationStatement => ()
|
||||||
case s:ForStatement =>
|
case s:ForStatement =>
|
||||||
checkName[Variable]("Variable", s.variable, s.position)
|
checkName[Variable]("Variable", s.variable, s.position)
|
||||||
|
Loading…
Reference in New Issue
Block a user