Assign

final case class Assign(id: LValue, expr: Expr, evalType: Type, promoteToType: Option[Type]) extends Expr

Assigns a value to the variable that already exists.

 int x; // defined before

 x = 10 + 2; // assignment here
Companion:
object
trait Serializable
trait Product
trait Equals
class Expr
class Stat
class AST
class Object
trait Matchable
class Any

Value members

Concrete methods

override def visit[S, R](s: S, v: TreeVisitor[S, R]): Either[Throwable, R]
Definition Classes
override def withPromoteToType(t: Option[Type]): Assign
Definition Classes

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product