summaryrefslogtreecommitdiff
path: root/sources/meta/scalac/ast/TreeFieldLink.java
diff options
context:
space:
mode:
authorGilles Dubochet <gilles.dubochet@epfl.ch>2005-12-18 18:33:03 +0000
committerGilles Dubochet <gilles.dubochet@epfl.ch>2005-12-18 18:33:03 +0000
commitd3819b93ab8b2de3d5cc35c33b8258ccdb5a931a (patch)
treedfc6f7f497e58ea3321e6f687b11313d2afa86b5 /sources/meta/scalac/ast/TreeFieldLink.java
parent0e82079908655682e5140ad521cef0572cb6d2a4 (diff)
downloadscala-d3819b93ab8b2de3d5cc35c33b8258ccdb5a931a.tar.gz
scala-d3819b93ab8b2de3d5cc35c33b8258ccdb5a931a.tar.bz2
scala-d3819b93ab8b2de3d5cc35c33b8258ccdb5a931a.zip
Removed old Scalac code in sources and various ...
Removed old Scalac code in sources and various other obsolete elements.
Diffstat (limited to 'sources/meta/scalac/ast/TreeFieldLink.java')
-rw-r--r--sources/meta/scalac/ast/TreeFieldLink.java60
1 files changed, 0 insertions, 60 deletions
diff --git a/sources/meta/scalac/ast/TreeFieldLink.java b/sources/meta/scalac/ast/TreeFieldLink.java
deleted file mode 100644
index 62e8dcfb10..0000000000
--- a/sources/meta/scalac/ast/TreeFieldLink.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/* ____ ____ ____ ____ ______ *\
-** / __// __ \/ __// __ \/ ____/ SOcos COmpiles Scala **
-** __\_ \/ /_/ / /__/ /_/ /\_ \ (c) 2002, LAMP/EPFL **
-** /_____/\____/\___/\____/____/ **
-\* */
-
-// $Id$
-
-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.
- */
-public class TreeFieldLink {
-
- //########################################################################
- // Public Cases
-
- /** Field is linked to the symbol's flags */
- public case SymFlags;
-
- /** Field is linked to the symbol's name */
- public case SymName;
-
- //########################################################################
- // Public Methods
-
- /** Returns the field or method to invoke to get the linked value. */
- public String getLink() {
- switch (this) {
- case SymFlags:
- return "flags";
- case SymName:
- return "name";
- default:
- throw new Error("unknown case: " + this);
- }
- }
-
- /** Returns the name of this link. */
- public String toString() {
- switch (this) {
- case SymFlags:
- return "flags";
- case SymName:
- return "name";
- default:
- throw new Error("unknown case: " + this);
- }
- }
-
- public JavaWriter print(JavaWriter writer, TreeField symbol) {
- return writer.print(symbol.name).print('.').print(getLink());
- }
-
- //########################################################################
-}