summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2005-11-29 12:06:15 +0000
committermichelou <michelou@epfl.ch>2005-11-29 12:06:15 +0000
commit115c008334b5e9df4d3729b3b16f1d84a0772548 (patch)
treef55f37c202e858b470ae77237b079e3009dbcda9 /sources
parent630b3717fc18e606442dde271ec189a785957791 (diff)
downloadscala-115c008334b5e9df4d3729b3b16f1d84a0772548.tar.gz
scala-115c008334b5e9df4d3729b3b16f1d84a0772548.tar.bz2
scala-115c008334b5e9df4d3729b3b16f1d84a0772548.zip
- added a second constructor 'GenTreeCloner'
Diffstat (limited to 'sources')
-rw-r--r--sources/scalac/ast/TreeCloner.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/sources/scalac/ast/TreeCloner.java b/sources/scalac/ast/TreeCloner.java
index 35d55fb247..8d96c1b23e 100644
--- a/sources/scalac/ast/TreeCloner.java
+++ b/sources/scalac/ast/TreeCloner.java
@@ -1,6 +1,6 @@
/* ____ ____ ____ ____ ______ *\
** / __// __ \/ __// __ \/ ____/ SOcos COmpiles Scala **
-** __\_ \/ /_/ / /__/ /_/ /\_ \ (c) 2002, LAMP/EPFL **
+** __\_ \/ /_/ / /__/ /_/ /\_ \ (c) 2002-2005, LAMP/EPFL **
** /_____/\____/\___/\____/____/ **
\* */
@@ -13,8 +13,8 @@ import java.util.Map;
import scalac.Global;
import scalac.symtab.Symbol;
import scalac.symtab.SymbolCloner;
-import scalac.symtab.Type;
import scalac.symtab.SymbolSubstTypeMap;
+import scalac.symtab.Type;
import scalac.util.Debug;
/**
@@ -108,6 +108,11 @@ public class GenTreeCloner extends GenTransformer {
this.cloner = cloner;
}
+ public GenTreeCloner(Global global, SymbolCloner cloner) {
+ super(global, cloner.getTypeMap());
+ this.cloner = cloner;
+ }
+
//########################################################################
// Public Methods