diff options
author | paltherr <paltherr@epfl.ch> | 2004-12-07 14:56:23 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2004-12-07 14:56:23 +0000 |
commit | cbd30cf21cbde81a1613226e920c282bd9ebfdf7 (patch) | |
tree | 34c75a92abb6dfde4b6881162e22c24fc5fe8c48 /sources/scalac/transformer/LambdaLiftPhase.java | |
parent | b8c700cd8f89695a9086636a1bd8442ee8d43200 (diff) | |
download | scala-cbd30cf21cbde81a1613226e920c282bd9ebfdf7.tar.gz scala-cbd30cf21cbde81a1613226e920c282bd9ebfdf7.tar.bz2 scala-cbd30cf21cbde81a1613226e920c282bd9ebfdf7.zip |
- Removed method Transformer.apply(CompilationU...
- Removed method Transformer.apply(CompilationUnit[] - Added method )
Phase.apply(CompilationUnit - Adapted most phases to implement method )
Phase.apply(CompilationUnit instead of Phase.apply(CompilationUnit[] )
Diffstat (limited to 'sources/scalac/transformer/LambdaLiftPhase.java')
-rw-r--r-- | sources/scalac/transformer/LambdaLiftPhase.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sources/scalac/transformer/LambdaLiftPhase.java b/sources/scalac/transformer/LambdaLiftPhase.java index e72575a707..42bf473112 100644 --- a/sources/scalac/transformer/LambdaLiftPhase.java +++ b/sources/scalac/transformer/LambdaLiftPhase.java @@ -21,10 +21,9 @@ public class LambdaLiftPhase extends Phase implements Kinds, Modifiers { super(global, descriptor); } - /** Applies this phase to the given compilation units. */ - public void apply(CompilationUnit[] units) { - for (int i = 0; i < units.length; i++) - new LambdaLift(global, this).apply(units[i]); + /** Applies this phase to the given compilation unit. */ + public void apply(CompilationUnit unit) { + new LambdaLift(global, this).apply(unit); } public Type transformInfo(Symbol sym, Type tp) { |