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 FieldDescriptor extends Descriptor {
13 protected Modifiers modifier;
14 protected TypeDescriptor td;
15 protected String identifier;
16 protected ExpressionNode en;
18 public FieldDescriptor(Modifiers m, TypeDescriptor t, String identifier, ExpressionNode e) {
22 this.identifier=identifier;
24 this.safename = "__" + name + "__";
25 this.uniqueid=count++;
28 public String toString() {
30 return modifier.toString()+td.toString()+" "+identifier+";";
32 return modifier.toString()+td.toString()+" "+identifier+"="+en.printNode()+";";