VarDecl

final case class VarDecl(vType: Type, name: String, expr: Expr, symbol: Symbol, evalType: Type, promoteToType: Option[Type]) extends Decl

Variable Declaration

The AST for int i; would have VARDECL at the root and int and i as children.

 int x;
 float y = 10;
Companion:
object
trait Serializable
trait Product
trait Equals
class Decl
trait HasName
trait HasSymbol
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]): VarDecl
Definition Classes

Inherited methods

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