diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/TreeBrowsers.scala | 10 | ||||
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/Trees.scala | 11 |
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 |