mirror of
https://github.com/KarolS/millfork.git
synced 2026-04-20 18:16:35 +00:00
Fix environment namecheck for Z80
This commit is contained in:
+2
-1
@@ -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] = {
|
||||
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 {
|
||||
case _:MosAssemblyStatement => ()
|
||||
case _:Z80AssemblyStatement => ()
|
||||
case _:DeclarationStatement => ()
|
||||
case s:ForStatement =>
|
||||
checkName[Variable]("Variable", s.variable, s.position)
|
||||
|
||||
Reference in New Issue
Block a user