2 import IR.Tree.Modifiers;
3 import IR.Tree.ExpressionNode;
8 * represents a symbol in the language (var name, function name, etc).
11 public class VarDescriptor extends Descriptor {
13 protected TypeDescriptor td;
14 protected String identifier;
16 public VarDescriptor(TypeDescriptor t, String identifier) {
19 this.identifier=identifier;
20 this.safename = "___" + name + "___";
21 this.uniqueid=count++;
24 public String getName() {
28 public TypeDescriptor getType() {
32 public String toString() {
33 return td.toString()+" "+identifier;