diff options
Diffstat (limited to 'src/compiler/scala/tools/nsc/ast/TreePrinters.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/TreePrinters.scala | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/TreePrinters.scala b/src/compiler/scala/tools/nsc/ast/TreePrinters.scala index 3d8e546729..f19a0d1092 100644 --- a/src/compiler/scala/tools/nsc/ast/TreePrinters.scala +++ b/src/compiler/scala/tools/nsc/ast/TreePrinters.scala @@ -252,6 +252,12 @@ abstract class TreePrinters { case Throw(expr) => print("throw "); print(expr) + case Pack(expr) => + print("pack("); print(expr); print(")") + + case Unpack(expr) => + print("unpack("); print(expr); print(")") + case New(tpe) => print("new "); print(tpe) @@ -327,6 +333,10 @@ abstract class TreePrinters { case WildcardTypeTree(lo, hi) => print("_ "); printOpt(" >: ", lo); printOpt(" <: ", hi) + case ExistentialTypeTree(tpt, whereClauses) => + print(tpt); + printColumn(whereClauses, " for_some { ", ";", "}") + case tree => print("<unknown tree of class "+tree.getClass+">") } |