summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2005-11-28 09:52:02 +0000
committermichelou <michelou@epfl.ch>2005-11-28 09:52:02 +0000
commit6f3451e92f6f40873d52ae2fab4e97ea8899bdf6 (patch)
tree5709adcf5892a582d525a75a573831e74e514798 /sources
parentc32643ee1bee38dd57504493e501b3345aa34188 (diff)
downloadscala-6f3451e92f6f40873d52ae2fab4e97ea8899bdf6.tar.gz
scala-6f3451e92f6f40873d52ae2fab4e97ea8899bdf6.tar.bz2
scala-6f3451e92f6f40873d52ae2fab4e97ea8899bdf6.zip
- added showTree for Tree[]
Diffstat (limited to 'sources')
-rw-r--r--sources/scalac/util/Debug.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/sources/scalac/util/Debug.java b/sources/scalac/util/Debug.java
index bf81511beb..3e889beb62 100644
--- a/sources/scalac/util/Debug.java
+++ b/sources/scalac/util/Debug.java
@@ -411,6 +411,16 @@ public class Debug extends scala.tools.util.debug.Debug {
return showTree(tree, false);
}
+ public static String showTree(Tree[] trees, boolean showType) {
+ StringBuffer buf = new StringBuffer();
+ append(buf, trees, showType);
+ return buf.toString();
+ }
+
+ public static String showTree(Tree[] trees) {
+ return showTree(trees, false);
+ }
+
//########################################################################
}