diff options
author | paltherr <paltherr@epfl.ch> | 2003-07-26 10:26:12 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2003-07-26 10:26:12 +0000 |
commit | 71557bc2da65fe25800b40320eac3ef642cf1ee3 (patch) | |
tree | dcd804472639dbe3797ed992a896ad8e08c7b7b0 /sources/scalac/ast/TreeCloner.java | |
parent | fc4121d4cc96e4231230db8c3e52ae6fcfeb70ad (diff) | |
download | scala-71557bc2da65fe25800b40320eac3ef642cf1ee3.tar.gz scala-71557bc2da65fe25800b40320eac3ef642cf1ee3.tar.bz2 scala-71557bc2da65fe25800b40320eac3ef642cf1ee3.zip |
- Added contructor with SymbolSubstTypeMap
Diffstat (limited to 'sources/scalac/ast/TreeCloner.java')
-rw-r--r-- | sources/scalac/ast/TreeCloner.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sources/scalac/ast/TreeCloner.java b/sources/scalac/ast/TreeCloner.java index 7c77a45132..6b784d7d98 100644 --- a/sources/scalac/ast/TreeCloner.java +++ b/sources/scalac/ast/TreeCloner.java @@ -13,6 +13,7 @@ import java.util.Map; import scalac.Global; import scalac.symtab.Symbol; import scalac.symtab.Type; +import scalac.symtab.SymbolSubstTypeMap; import scalac.util.Debug; /** @@ -34,6 +35,11 @@ public class TreeCloner extends Transformer { // Public Constructors /** Initializes a new instance. */ + public TreeCloner(Global global, SymbolSubstTypeMap types) { + this(global, types.getSymbols(), types); + } + + /** Initializes a new instance. */ public TreeCloner(Global global, Map symbols, Type.Map types) { super(global, global.make, new StrictTreeCopier(global.make)); this.symbols = symbols; |