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 MethodDescriptor extends Descriptor {
13 protected Modifiers modifier;
14 protected TypeDescriptor returntype;
15 protected String identifier;
17 public MethodDescriptor(Modifiers m, TypeDescriptor rt, String identifier) {
21 this.identifier=identifier;
22 this.safename = "__" + name + "__";
23 this.uniqueid=count++;
26 public String toString() {
27 return modifier.toString()+td.toString()+" "+identifier+"()";