diff options
author | paltherr <paltherr@epfl.ch> | 2004-02-12 15:10:40 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2004-02-12 15:10:40 +0000 |
commit | 2014d1feeefd1bc6bcfee0cee347c4a77db05253 (patch) | |
tree | deffe18f0bf6527171d655885445abc8bb17023b /sources/scalac/transformer/LambdaLift.java | |
parent | b62de8dc4f94efa47bf6714865b8bbf4df700046 (diff) | |
download | scala-2014d1feeefd1bc6bcfee0cee347c4a77db05253.tar.gz scala-2014d1feeefd1bc6bcfee0cee347c4a77db05253.tar.bz2 scala-2014d1feeefd1bc6bcfee0cee347c4a77db05253.zip |
- Changed Tree.Block(Tree[]) to Tree.Block(Tree...
- Changed Tree.Block(Tree[]) to Tree.Block(Tree[],Tree)
Diffstat (limited to 'sources/scalac/transformer/LambdaLift.java')
-rw-r--r-- | sources/scalac/transformer/LambdaLift.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sources/scalac/transformer/LambdaLift.java b/sources/scalac/transformer/LambdaLift.java index 7129d5bdab..b580812ecb 100644 --- a/sources/scalac/transformer/LambdaLift.java +++ b/sources/scalac/transformer/LambdaLift.java @@ -350,10 +350,10 @@ public class LambdaLift extends OwnerTransformer tree.type = descr.transform(tree.type, currentOwner); //System.out.println(tree.type);//DEBUG switch (tree) { - case Block(Tree[] stats): + case Block(Tree[] stats, Tree value): for (int i = 0; i < stats.length; i++) liftSymbol(stats[i]); - return copy.Block(tree, transform(stats)); + return copy.Block(tree, transform(stats), transform(value)); case ClassDef(int mods, _, AbsTypeDef[] tparams, ValDef[][] vparams, Tree tpe, Template impl): Symbol sym = tree.symbol(); @@ -461,9 +461,7 @@ public class LambdaLift extends OwnerTransformer // fn2 may be like "{ println("hello"); Predef}.Array" switch (fn2) { case Select(Tree qualifier, _): - return gen.Block( - args[0].pos, - new Tree[] {qualifier, array}); + return gen.mkBlock(args[0].pos, qualifier, array); default: throw Debug.abort("illegal case", fn2); } |