blob: 0a9c440df2e03cb523f89bab34d23c93ce7f494b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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();
}
//########################################################################
}
|