summaryrefslogtreecommitdiff
path: root/sources/scalac/ast/printer
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2003-07-30 14:51:58 +0000
committerpaltherr <paltherr@epfl.ch>2003-07-30 14:51:58 +0000
commit728ab1f19fd79630b4c0919b960dad9ecf6055f1 (patch)
treea24abf1d22c8ed7eb22c7bc2d3b283797f1ab0aa /sources/scalac/ast/printer
parent8684be678d835f938a063ce9887370058254a22d (diff)
downloadscala-728ab1f19fd79630b4c0919b960dad9ecf6055f1.tar.gz
scala-728ab1f19fd79630b4c0919b960dad9ecf6055f1.tar.bz2
scala-728ab1f19fd79630b4c0919b960dad9ecf6055f1.zip
- Repolaced Tree argument of This and Super nod...
- Repolaced Tree argument of This and Super nodes by a Name argument
Diffstat (limited to 'sources/scalac/ast/printer')
-rw-r--r--sources/scalac/ast/printer/TextTreePrinter.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/sources/scalac/ast/printer/TextTreePrinter.java b/sources/scalac/ast/printer/TextTreePrinter.java
index dd46c8a710..8773c7e72e 100644
--- a/sources/scalac/ast/printer/TextTreePrinter.java
+++ b/sources/scalac/ast/printer/TextTreePrinter.java
@@ -15,6 +15,7 @@ import scalac.util.Debug;
import scalac.Global;
import scalac.Unit;
import scalac.util.Name;
+import scalac.util.TypeNames;
import java.io.*;
import java.util.*;
@@ -479,18 +480,18 @@ public class TextTreePrinter implements TreePrinter {
printType(tree);
break;
- case Super(Tree qualifier):
- if (qualifier != Tree.Empty) {
- print(qualifier);
+ case Super(Name name):
+ if (name != TypeNames.EMPTY) {
+ printSymbolUse(tree.symbol(), name);
print(TXT_DOT);
}
print(KW_SUPER);
printType(tree);
break;
- case This(Tree qualifier):
- if (qualifier != Tree.Empty) {
- print(qualifier);
+ case This(Name name):
+ if (name != TypeNames.EMPTY) {
+ printSymbolUse(tree.symbol(), name);
print(TXT_DOT);
}
print(KW_THIS);