summaryrefslogtreecommitdiff
path: root/sources/scalac/ast/LazyTreeCopier.java.tmpl
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2003-04-14 16:31:03 +0000
committerpaltherr <paltherr@epfl.ch>2003-04-14 16:31:03 +0000
commitc8bea29c67aff96acca6b28aa859978f2b4d872f (patch)
tree1cd8b16b90840e3bf6e69cf6e3513c8927e81618 /sources/scalac/ast/LazyTreeCopier.java.tmpl
parente51cf921ec19401f8e917255118a1a53e7c6520d (diff)
downloadscala-c8bea29c67aff96acca6b28aa859978f2b4d872f.tar.gz
scala-c8bea29c67aff96acca6b28aa859978f2b4d872f.tar.bz2
scala-c8bea29c67aff96acca6b28aa859978f2b4d872f.zip
- Added automatic generation of TreeCopier.java
- Added automatic generation of LazyTreeCopier.java Added automatic - generation of StrictTreeCopier.java
Diffstat (limited to 'sources/scalac/ast/LazyTreeCopier.java.tmpl')
-rw-r--r--sources/scalac/ast/LazyTreeCopier.java.tmpl37
1 files changed, 37 insertions, 0 deletions
diff --git a/sources/scalac/ast/LazyTreeCopier.java.tmpl b/sources/scalac/ast/LazyTreeCopier.java.tmpl
new file mode 100644
index 0000000000..31608580ab
--- /dev/null
+++ b/sources/scalac/ast/LazyTreeCopier.java.tmpl
@@ -0,0 +1,37 @@
+/* ____ ____ ____ ____ ______ *\
+** / __// __ \/ __// __ \/ ____/ SOcos COmpiles Scala **
+** __\_ \/ /_/ / /__/ /_/ /\_ \ (c) 2002, LAMP/EPFL **
+** /_____/\____/\___/\____/____/ **
+\* */
+
+// $Id$
+
+package scalac.ast;
+
+{#Imports#}
+
+/**
+ * A tree copier that returns a new tree only if some fields have
+ * changed
+ */
+public class LazyTreeCopier implements TreeCopier {
+
+ //########################################################################
+ // Protected Fields
+
+ protected final TreeFactory make;
+
+ //########################################################################
+ // Public Constructors
+
+ public LazyTreeCopier(TreeFactory make) {
+ this.make = make;
+ }
+
+ //########################################################################
+ // Public Methods
+
+ {#TreeMethods#}
+
+ //########################################################################
+}