This commit was manufactured by cvs2svn to create tag 'buildscript'.
[IRC.git] /
1 package IR;
2 import IR.Tree.Modifiers;
3 import IR.Tree.ExpressionNode;
4
5 /**
6  * Descriptor 
7  *
8  * represents a symbol in the language (var name, function name, etc).
9  */
10
11 public class VarDescriptor extends Descriptor {
12
13     protected TypeDescriptor td;
14     protected String identifier;
15     
16     public VarDescriptor(TypeDescriptor t, String identifier) {
17         super(identifier);
18         this.td=t;
19         this.identifier=identifier;
20         this.safename = "___" + name + "___";
21         this.uniqueid=count++;
22     }
23
24     public String getName() {
25         return identifier;
26     }
27
28     public TypeDescriptor getType() {
29         return td;
30     }
31
32     public String toString() {
33             return td.toString()+" "+identifier;
34     }
35 }