diff options
author | paltherr <paltherr@epfl.ch> | 2003-07-11 09:02:48 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2003-07-11 09:02:48 +0000 |
commit | c9f76440265b557f776d67839628ddad8520b7a5 (patch) | |
tree | 65aab83a1d3e041db28e29c3b5de8e3c87b79a32 /sources/scalac/transformer | |
parent | 8b54bfd4f63139f70a9c5306e2256d5db25032e6 (diff) | |
download | scala-c9f76440265b557f776d67839628ddad8520b7a5.tar.gz scala-c9f76440265b557f776d67839628ddad8520b7a5.tar.bz2 scala-c9f76440265b557f776d67839628ddad8520b7a5.zip |
- Added method Type.cloneType
- Added method Type.Map.applyParams
- Added a boolean "dontClone" to methods Type.Map.map(Symbol) and
Type.Map.map(Symbol[])
Diffstat (limited to 'sources/scalac/transformer')
-rw-r--r-- | sources/scalac/transformer/LambdaLiftPhase.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sources/scalac/transformer/LambdaLiftPhase.java b/sources/scalac/transformer/LambdaLiftPhase.java index 73e26e7986..050cc95515 100644 --- a/sources/scalac/transformer/LambdaLiftPhase.java +++ b/sources/scalac/transformer/LambdaLiftPhase.java @@ -73,6 +73,8 @@ public class LambdaLiftPhase extends PhaseDescriptor implements Kinds, Modifiers return transformTypeMap.setOwner(owner).apply(tp); } + /** MapOnlyTypes => All symbols are mapped to themselves. + */ private class TransformTypeMap extends Type.MapOnlyTypes { Symbol owner; // ArrayList/*<Symbol>*/ excluded = new ArrayList(); @@ -122,12 +124,6 @@ public class LambdaLiftPhase extends PhaseDescriptor implements Kinds, Modifiers } return map(tp); } - - /** All symbols are mapped to themselves. - */ - public Scope map(Scope s) { return s; } - public Symbol map(Symbol s) { return s; } - public Symbol[] map(Symbol[] ss) { return ss; } } private TransformTypeMap transformTypeMap = new TransformTypeMap(); |