StructVal

final case class StructVal(sType: Type, value: Map[String, Expr], symbol: Symbol, evalType: Type, promoteToType: Option[Type]) extends ConstVal

Struct Initializer

 struct A {
   a: int
   b: string
 };

 A = { a: 1, b: "hello" };
Companion:
object
trait Serializable
trait Product
trait Equals
class ConstVal
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]): StructVal
Definition Classes

Inherited methods

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