Literal

amyc.ast.TreeModule.Literal
sealed trait Literal[+T](value: T) extends Expr

Represent a Literal (Int, Boolean, String or Unit)

Attributes

Graph
Supertypes
trait Expr
trait Tree
trait Positioned
class Object
trait Matchable
class Any
Show all
Known subtypes

Members list

Value members

Inherited methods

def hasPosition: Boolean

Attributes

Inherited from:
Positioned

Attributes

Inherited from:
Positioned
def setPos(other: Positioned): Positioned.this.type

Attributes

Inherited from:
Positioned
def setPos(pos: Position): Positioned.this.type

Attributes

Inherited from:
Positioned
def tpe: Type

Attributes

Inherited from:
Tree
final def withType(tpe: Type): Tree.this.type

Attributes

Inherited from:
Tree

Inherited fields

protected var pos_: Position

Attributes

Inherited from:
Positioned