summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorBurak Emir <emir@epfl.ch>2006-11-29 12:17:38 +0000
committerBurak Emir <emir@epfl.ch>2006-11-29 12:17:38 +0000
commit04fe2f9bde5b1fcc80ce8a737366002b8ed478a6 (patch)
tree947a15d90d63fa2db5d19f8735982e16b9f83afb /src/compiler
parent962905168622ec7d316c82740adbef1230a78ab9 (diff)
downloadscala-04fe2f9bde5b1fcc80ce8a737366002b8ed478a6.tar.gz
scala-04fe2f9bde5b1fcc80ce8a737366002b8ed478a6.tar.bz2
scala-04fe2f9bde5b1fcc80ce8a737366002b8ed478a6.zip
revert
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/ast/TreeBrowsers.scala10
-rw-r--r--src/compiler/scala/tools/nsc/ast/Trees.scala11
2 files changed, 10 insertions, 11 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/TreeBrowsers.scala b/src/compiler/scala/tools/nsc/ast/TreeBrowsers.scala
index d176d4ad82..ccbc9dd764 100644
--- a/src/compiler/scala/tools/nsc/ast/TreeBrowsers.scala
+++ b/src/compiler/scala/tools/nsc/ast/TreeBrowsers.scala
@@ -39,6 +39,16 @@ abstract class TreeBrowsers {
def create(): SwingBrowser = new SwingBrowser();
+ /** Pseudo tree class, so that all JTree nodes are treated uniformly */
+ case class ProgramTree(units: List[UnitTree]) extends Tree {
+ override def toString(): String = "Program"
+ }
+
+ /** Pseudo tree class, so that all JTree nodes are treated uniformly */
+ case class UnitTree(unit: CompilationUnit) extends Tree {
+ override def toString(): String = unit.toString()
+ }
+
/**
* Java Swing pretty printer for Scala abstract syntax trees.
*/
diff --git a/src/compiler/scala/tools/nsc/ast/Trees.scala b/src/compiler/scala/tools/nsc/ast/Trees.scala
index fa96b0da11..858e22b54f 100644
--- a/src/compiler/scala/tools/nsc/ast/Trees.scala
+++ b/src/compiler/scala/tools/nsc/ast/Trees.scala
@@ -139,17 +139,6 @@ trait Trees requires Global {
}
}
-
- /** Pseudo tree class needed in TreeBrowsers, so that all JTree nodes are treated uniformly */
- case class ProgramTree(units: List[UnitTree]) extends Tree {
- override def toString(): String = "Program"
- }
-
- /** Pseudo tree class needed in TreeBrowsers, so that all JTree nodes are treated uniformly */
- case class UnitTree(unit: CompilationUnit) extends Tree {
- override def toString(): String = unit.toString()
- }
-
trait SymTree extends Tree {
override def hasSymbol = true
override var symbol: Symbol = NoSymbol