diff options
author | michelou <michelou@epfl.ch> | 2005-11-28 09:52:02 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2005-11-28 09:52:02 +0000 |
commit | 6f3451e92f6f40873d52ae2fab4e97ea8899bdf6 (patch) | |
tree | 5709adcf5892a582d525a75a573831e74e514798 | |
parent | c32643ee1bee38dd57504493e501b3345aa34188 (diff) | |
download | scala-6f3451e92f6f40873d52ae2fab4e97ea8899bdf6.tar.gz scala-6f3451e92f6f40873d52ae2fab4e97ea8899bdf6.tar.bz2 scala-6f3451e92f6f40873d52ae2fab4e97ea8899bdf6.zip |
- added showTree for Tree[]
-rw-r--r-- | sources/scalac/util/Debug.java | 10 |
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); + } + //######################################################################## } |