summaryrefslogtreecommitdiff
path: root/src/library/scala/reflect/Tree.scala
blob: dd46e4287336b0cc510c056f09a6e9200d475a3d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*                     __                                               *\
**     ________ ___   / /  ___     Scala API                            **
**    / __/ __// _ | / /  / _ |    (c) 2002-2006, LAMP/EPFL             **
**  __\ \/ /__/ __ |/ /__/ __ |                                         **
** /____/\___/_/ |_/____/_/ | |                                         **
**                          |/                                          **
\*                                                                      */

// $Id$


package scala.reflect;


abstract class Tree;

case class Ident(sym: Symbol) extends Tree;
case class Select(qual: Tree, sym: Symbol) extends Tree;
case class Literal(value: Any) extends Tree;
case class Apply(fun: Tree, args: List[Tree]) extends Tree;
case class TypeApply(fun: Tree, args: List[Type]) extends Tree;
case class Function(params: List[Symbol], body: Tree) extends Tree;
case class This(sym: Symbol) extends Tree;
case class Block(stats: List[Tree], expr: Tree) extends Tree;
case class New(sym: Tree) extends Tree;
case class If(condition: Tree, trueCase: Tree, falseCase: Tree) extends Tree;
case class Assign(destination: Tree, source: Tree) extends Tree;
case class Target(sym: LabelSymbol, body: Tree) extends Tree;
case class Goto(target: LabelSymbol) extends Tree;