From c9f76440265b557f776d67839628ddad8520b7a5 Mon Sep 17 00:00:00 2001 From: paltherr Date: Fri, 11 Jul 2003 09:02:48 +0000 Subject: - Added method Type.cloneType - Added method Type.Map.applyParams - Added a boolean "dontClone" to methods Type.Map.map(Symbol) and Type.Map.map(Symbol[]) --- sources/scalac/transformer/LambdaLiftPhase.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'sources/scalac/transformer/LambdaLiftPhase.java') 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/**/ 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(); -- cgit v1.2.3