summaryrefslogtreecommitdiff
path: root/sources/scalac/util
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2003-02-21 09:38:51 +0000
committerpaltherr <paltherr@epfl.ch>2003-02-21 09:38:51 +0000
commit6f6ef48204fa34cf4e65087b5349aa6ff4a5e8e2 (patch)
treee0fafd3a75e24724467e277f76ab3788fa752130 /sources/scalac/util
parent2c4907694588c900cbf43b3cf05d6e05ecc36ddb (diff)
downloadscala-6f6ef48204fa34cf4e65087b5349aa6ff4a5e8e2.tar.gz
scala-6f6ef48204fa34cf4e65087b5349aa6ff4a5e8e2.tar.bz2
scala-6f6ef48204fa34cf4e65087b5349aa6ff4a5e8e2.zip
- Completed printer for types
Diffstat (limited to 'sources/scalac/util')
-rw-r--r--sources/scalac/util/Debug.java32
1 files changed, 28 insertions, 4 deletions
diff --git a/sources/scalac/util/Debug.java b/sources/scalac/util/Debug.java
index 4597463aab..1b6da14bda 100644
--- a/sources/scalac/util/Debug.java
+++ b/sources/scalac/util/Debug.java
@@ -375,17 +375,41 @@ public class DebugType extends DebugAbstractHandler {
buffer.append(')');
return;
+ case OverloadedType(Symbol[] alts, Type[] alttypes):
+ buffer.append("OverloadedType(");
+ Debug.append(buffer, alts);
+ buffer.append(',');
+ Debug.append(buffer, alttypes);
+ buffer.append(')');
+ return;
+
case CovarType(Type tp):
buffer.append("CovarType(");
Debug.append(buffer, tp);
buffer.append(')');
return;
- case OverloadedType(Symbol[] alts, Type[] alttypes):
- buffer.append("OverloadedType(");
- Debug.append(buffer, alts);
+ case LazyType():
+ buffer.append("LazyType()");
+ return;
+
+ case TypeVar(Type origin, Type.Constraint constr):
+ buffer.append("TypeVar(");
+ Debug.append(buffer, origin);
buffer.append(',');
- Debug.append(buffer, alttypes);
+ Debug.append(buffer, constr);
+ buffer.append(')');
+ return;
+
+ case UnboxedType(int tag):
+ buffer.append("UnboxedType(");
+ buffer.append(tag);
+ buffer.append(')');
+ return;
+
+ case UnboxedArrayType(Type elemtp):
+ buffer.append("UnboxedArrayType(");
+ Debug.append(buffer, elemtp);
buffer.append(')');
return;