Tree

amyc.ast.TreeModule.Tree
sealed trait Tree extends Positioned

Base type for all the AST nodes

Attributes

Graph
Supertypes
trait Positioned
class Object
trait Matchable
class Any
Known subtypes
trait Definition
class CaseClassDef
class FunDef
class ModuleDef
class ParamDef
trait Expr
class Call
class EmptyExpr
class Error
class FunRef
class InfixCall
class Ite
class Let
trait Literal[T]
class IntLiteral
class UnitLiteral
class Match
class Neg
class Not
class Sequence
class Variable
class MatchCase
class Pattern
class IdPattern
class LiteralPattern[T]
class Program
trait TypeTree
class TTypeTree
Show all

Members list

Value members

Concrete methods

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

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

Inherited fields

protected var pos_: Position

Attributes

Inherited from:
Positioned