diff options
author | paltherr <paltherr@epfl.ch> | 2003-10-03 12:44:02 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2003-10-03 12:44:02 +0000 |
commit | 82f735e5d5e9275a183d085c6b9d2ee01e701551 (patch) | |
tree | 88d5ee1a56715ac4a414216e39108a202d95f49e | |
parent | dd6c1584690de3e060808cd63f73417c8dbe2cba (diff) | |
download | scala-82f735e5d5e9275a183d085c6b9d2ee01e701551.tar.gz scala-82f735e5d5e9275a183d085c6b9d2ee01e701551.tar.bz2 scala-82f735e5d5e9275a183d085c6b9d2ee01e701551.zip |
- Improved class description
-rw-r--r-- | sources/scalac/ast/TreeCloner.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sources/scalac/ast/TreeCloner.java b/sources/scalac/ast/TreeCloner.java index 6b784d7d98..30a63b9255 100644 --- a/sources/scalac/ast/TreeCloner.java +++ b/sources/scalac/ast/TreeCloner.java @@ -18,7 +18,12 @@ import scalac.util.Debug; /** * This class implements a deep tree cloner. It provides support to - * change tree symbols and tree types on the fly. + * change tree symbols and tree types on the fly. This cloner never + * clones symbols, but its default implementation of getSymbolFor + * requires that all symbols that are defined by the tree to be cloned + * are present in the symbol substitution. This implies that if the + * tree to clone contains definitions, it must first be traversed to + * map all defined symbols. To do this, one can use TreeSymbolCloner. */ public class TreeCloner extends Transformer { |