summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authorburaq <buraq@epfl.ch>2003-10-02 16:22:06 +0000
committerburaq <buraq@epfl.ch>2003-10-02 16:22:06 +0000
commit201f7eceea7678169affe01d5d292b6985078da5 (patch)
tree43bab1666c332bb5c4ced3ec6838df4f713034b7 /sources
parent041659f9cce428b73dd0895864cc4328796753a8 (diff)
downloadscala-201f7eceea7678169affe01d5d292b6985078da5.tar.gz
scala-201f7eceea7678169affe01d5d292b6985078da5.tar.bz2
scala-201f7eceea7678169affe01d5d292b6985078da5.zip
moved methods for constructing Cons and Nil to ...
moved methods for constructing Cons and Nil to TreeGen
Diffstat (limited to 'sources')
-rw-r--r--sources/scalac/transformer/LambdaLift.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/sources/scalac/transformer/LambdaLift.java b/sources/scalac/transformer/LambdaLift.java
index 209be84626..9677703bb8 100644
--- a/sources/scalac/transformer/LambdaLift.java
+++ b/sources/scalac/transformer/LambdaLift.java
@@ -656,11 +656,11 @@ public class LambdaLift extends OwnerTransformer
}
Tree mkList(int pos, Type elemtpe, Tree[] args, int start) {
- if (start == args.length) return mkNil(pos);
- else return mkCons(pos, elemtpe, args[start],
- mkList(pos, elemtpe, args, start + 1));
+ if (start == args.length) return gen.Nil(pos);
+ else return gen.Cons(pos, elemtpe, args[start],
+ mkList(pos, elemtpe, args, start + 1));
}
-
+ /*
Tree mkNil(int pos) {
return gen.mkRef(pos, global.definitions.getModule(Names.scala_Nil));
}
@@ -675,4 +675,5 @@ public class LambdaLift extends OwnerTransformer
new Tree[]{gen.mkType(pos, elemtpe)}),
new Tree[]{hd, tl}));
}
+ */
}