diff options
author | paltherr <paltherr@epfl.ch> | 2004-06-17 09:11:09 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2004-06-17 09:11:09 +0000 |
commit | b64f685febe056c5d90c6bb1589edf0a7f09254a (patch) | |
tree | a41a6c2324f5caa7d5ee09bcfcfc3c0c5832e9a0 /sources/scalac/ast | |
parent | fa64b1f6b2d998caf925147427ac7fc3ab35f2f2 (diff) | |
download | scala-b64f685febe056c5d90c6bb1589edf0a7f09254a.tar.gz scala-b64f685febe056c5d90c6bb1589edf0a7f09254a.tar.bz2 scala-b64f685febe056c5d90c6bb1589edf0a7f09254a.zip |
- Adapted to new class scala.tools.util.debug.D...
- Adapted to new class scala.tools.util.debug.Debug
Diffstat (limited to 'sources/scalac/ast')
-rw-r--r-- | sources/scalac/ast/Tree.java.tmpl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sources/scalac/ast/Tree.java.tmpl b/sources/scalac/ast/Tree.java.tmpl index e7e23e54a5..0b130451fe 100644 --- a/sources/scalac/ast/Tree.java.tmpl +++ b/sources/scalac/ast/Tree.java.tmpl @@ -119,10 +119,7 @@ public class Tree { //######################################################################## // Public Methods - duplication - public static Transformer duplicator = - new Transformer( - Global.instance, Global.instance.make, - new StrictTreeCopier(Global.instance.make)); + public static Transformer duplicator; /** Returns a shallow copy of the given array. */ public static Tree[] cloneArray(Tree[] array) { @@ -168,6 +165,9 @@ public class Tree { } public Tree duplicate() { + if (duplicator == null) duplicator =new Transformer( + Global.instance, Global.instance.make, + new StrictTreeCopier(Global.instance.make)); return duplicator.transform(this); } |