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;
15 protected ExpressionNode en;
17 public VarDescriptor(TypeDescriptor t, String identifier, ExpressionNode e) {
20 this.identifier=identifier;
22 this.safename = "__" + name + "__";
23 this.uniqueid=count++;
26 public String toString() {
28 return td.toString()+" "+identifier;
30 return td.toString()+" "+identifier+"="+en.printNode(0);