diff options
author | paltherr <paltherr@epfl.ch> | 2003-04-30 07:44:06 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2003-04-30 07:44:06 +0000 |
commit | fa72586d0b7c8fef92643d1d1402c8d94bea9c3d (patch) | |
tree | b6deef5e7f28373abe0f5157f55fc27d39fd7a0e /sources/meta/scalac/ast/TreeFieldLink.java | |
parent | 4d1dfaffedbe38038fcfe2fc3af01f1c949a53fe (diff) | |
download | scala-fa72586d0b7c8fef92643d1d1402c8d94bea9c3d.tar.gz scala-fa72586d0b7c8fef92643d1d1402c8d94bea9c3d.tar.bz2 scala-fa72586d0b7c8fef92643d1d1402c8d94bea9c3d.zip |
- Added methods which take a symbol in TreeFact...
- Added methods which take a symbol in TreeFactories and TreeCopiers.
Diffstat (limited to 'sources/meta/scalac/ast/TreeFieldLink.java')
-rw-r--r-- | sources/meta/scalac/ast/TreeFieldLink.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sources/meta/scalac/ast/TreeFieldLink.java b/sources/meta/scalac/ast/TreeFieldLink.java index b338ccd6eb..62e8dcfb10 100644 --- a/sources/meta/scalac/ast/TreeFieldLink.java +++ b/sources/meta/scalac/ast/TreeFieldLink.java @@ -8,6 +8,8 @@ package meta.scalac.ast; +import meta.java.JavaWriter; + /** * This class describes the possible links between a given field of a * tree and the symbol of that tree. @@ -50,5 +52,9 @@ public class TreeFieldLink { } } + public JavaWriter print(JavaWriter writer, TreeField symbol) { + return writer.print(symbol.name).print('.').print(getLink()); + } + //######################################################################## } |