diff options
author | paltherr <paltherr@epfl.ch> | 2003-03-14 10:25:56 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2003-03-14 10:25:56 +0000 |
commit | 23f2da861524eb4bbe34429207f171d0e93d9e9c (patch) | |
tree | 5d01ac1c087efc9b6f64dd7d2d59c976b2d6dc6c /sources | |
parent | b4b5355b6b2bba37c2ea74b086992625038f8e7b (diff) | |
download | scala-23f2da861524eb4bbe34429207f171d0e93d9e9c.tar.gz scala-23f2da861524eb4bbe34429207f171d0e93d9e9c.tar.bz2 scala-23f2da861524eb4bbe34429207f171d0e93d9e9c.zip |
- Added some cases to the method toString
Diffstat (limited to 'sources')
-rw-r--r-- | sources/scalac/ast/Tree.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sources/scalac/ast/Tree.java b/sources/scalac/ast/Tree.java index d7e54dfc52..c873aff874 100644 --- a/sources/scalac/ast/Tree.java +++ b/sources/scalac/ast/Tree.java @@ -563,6 +563,14 @@ public class Tree { return qual + "." + name; case Ident(Name name): return name.toString(); + case TypeApply(Tree fn, Tree[] args): + String res = fn + "["; + if ((args == null) || (args.length == 0)) + return res + "]"; + res += args[0].toString(); + for (int i = 1; i < args.length; i++) + res += ", " + args[i]; + return res + "]"; case Apply(Tree fn, Tree[] args): String res = fn + "("; if ((args == null) || (args.length == 0)) @@ -580,6 +588,8 @@ public class Tree { return "import " + expr; case Empty: return "<empty>"; + case TypeTerm(): + return type().toString(); default: return super.toString(); } |