summaryrefslogtreecommitdiff
path: root/sources/scalac/ast
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2004-03-04 00:14:00 +0000
committerpaltherr <paltherr@epfl.ch>2004-03-04 00:14:00 +0000
commit5ff59b4a7aa36c480dd2284544a2c14bd498301d (patch)
treeffbc953714ef0fd039aec75d69395ffea6a6f23e /sources/scalac/ast
parent67089f9e05c90c5ae484b614ee8c64cf0cb62052 (diff)
downloadscala-5ff59b4a7aa36c480dd2284544a2c14bd498301d.tar.gz
scala-5ff59b4a7aa36c480dd2284544a2c14bd498301d.tar.bz2
scala-5ff59b4a7aa36c480dd2284544a2c14bd498301d.zip
- Added Type.NoPrefix
- Replaced ThisType(NONE) by NoPrefix
Diffstat (limited to 'sources/scalac/ast')
-rw-r--r--sources/scalac/ast/TreeGen.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/scalac/ast/TreeGen.java b/sources/scalac/ast/TreeGen.java
index c832aca543..9ee22a0a32 100644
--- a/sources/scalac/ast/TreeGen.java
+++ b/sources/scalac/ast/TreeGen.java
@@ -251,6 +251,8 @@ public class TreeGen implements Kinds, Modifiers, TypeTags {
*/
public Tree mkRef(int pos, Type stable, Symbol symbol) {
switch (stable) {
+ case NoPrefix:
+ return Ident(pos, symbol);
case ThisType(Symbol clasz):
if (clasz.isRoot() || clasz.isNone()) return Ident(pos, symbol);
if (clasz.isPackage()) return mkRef(pos, mkGlobalRef(pos, clasz.module()), symbol); // !!!