diff options
author | paltherr <paltherr@epfl.ch> | 2003-11-05 16:41:01 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2003-11-05 16:41:01 +0000 |
commit | 93fc1b0b638d5d374d6c51970cd5c247518fe563 (patch) | |
tree | 8bd0459212a4b8347cc7e67e32cc25a676eee3d4 /sources/scalac/atree/ALocation.java | |
parent | 57875e803374bf38d8ff5006c76aa2bb87fc2958 (diff) | |
download | scala-93fc1b0b638d5d374d6c51970cd5c247518fe563.tar.gz scala-93fc1b0b638d5d374d6c51970cd5c247518fe563.tar.bz2 scala-93fc1b0b638d5d374d6c51970cd5c247518fe563.zip |
- Added atree/ALocation.java
Diffstat (limited to 'sources/scalac/atree/ALocation.java')
-rw-r--r-- | sources/scalac/atree/ALocation.java | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/sources/scalac/atree/ALocation.java b/sources/scalac/atree/ALocation.java new file mode 100644 index 0000000000..0a9c440df2 --- /dev/null +++ b/sources/scalac/atree/ALocation.java @@ -0,0 +1,33 @@ +/* ____ ____ ____ ____ ______ *\ +** / __// __ \/ __// __ \/ ____/ SOcos COmpiles Scala ** +** __\_ \/ /_/ / /__/ /_/ /\_ \ (c) 2002, LAMP/EPFL ** +** /_____/\____/\___/\____/____/ ** +\* */ + +// $Id$ + +package scalac.atree; + +import scalac.symtab.Symbol; + +/** This class represents an attributed value location. */ +public class ALocation { + + //######################################################################## + // Public Cases + + public case Module(Symbol module); // !!! remove ? + public case Field(ACode object, Symbol field, boolean isStatic); + public case Local(Symbol local, boolean isArgument); + public case ArrayItem(ACode array, ACode index); + + //######################################################################## + // Public Methods + + /** Returns a string representation of this location. */ + public String toString() { + return new ATreePrinter().printLocation(this).toString(); + } + + //######################################################################## +} |