fix: add uid to microWacc Ident

This commit is contained in:
Gleb Koval 2025-02-14 00:35:48 +00:00
parent 6a6aadbbeb
commit bc25f914ad
Signed by: cyclane
GPG Key ID: 15E168A8B332382C

View File

@ -15,7 +15,7 @@ object microWacc {
case class CharLiter(v: Char) extends Expr(KnownType.Char) case class CharLiter(v: Char) extends Expr(KnownType.Char)
case class ArrayLiter(elems: List[Expr])(ty: SemType) extends Expr(ty) case class ArrayLiter(elems: List[Expr])(ty: SemType) extends Expr(ty)
case class NullLiter()(ty: SemType) extends Expr(ty) case class NullLiter()(ty: SemType) extends Expr(ty)
case class Ident(name: String)(identTy: SemType) case class Ident(name: String, uid: Int)(identTy: SemType)
extends Expr(identTy) extends Expr(identTy)
with CallTarget(identTy) with CallTarget(identTy)
with LValue with LValue