Change tabbing for everything....
[IRC.git] / Robust / src / IR / FieldDescriptor.java
index fb67c8fe493b26d2afaa741516aaf4548f6907c8..edfb8959db0276f9c780451ea6f7f350dba58c81 100644 (file)
@@ -3,48 +3,48 @@ import IR.Tree.Modifiers;
 import IR.Tree.ExpressionNode;
 
 /**
- * Descriptor 
+ * Descriptor
  *
  * represents a symbol in the language (var name, function name, etc).
  */
 
 public class FieldDescriptor extends Descriptor {
 
-    public static FieldDescriptor arrayLength=new FieldDescriptor(new Modifiers(Modifiers.PUBLIC|Modifiers.FINAL), new TypeDescriptor(TypeDescriptor.INT), "length", null, false);
-
-    protected Modifiers modifier;
-    protected TypeDescriptor td;
-    protected String identifier;
-    protected ExpressionNode en;
-    private boolean isglobal;
-
-    public FieldDescriptor(Modifiers m, TypeDescriptor t, String identifier, ExpressionNode e, boolean isglobal) {
-       super(identifier);
-       this.modifier=m;
-       this.td=t;
-       this.en=e;
-        this.safename = "___" + name + "___";
-       this.uniqueid=count++;
-       this.isglobal=isglobal;
-       if (en!=null) throw new Error("Field initializers not implemented");
-    }
-
-    public boolean isGlobal() {
-       return isglobal;
-    }
-
-    public TypeDescriptor getType() {
-       return td;
-    }
-
-    public String toString() {
-       if (en==null)
-           return modifier.toString()+td.toString()+" "+getSymbol()+";";
-       else
-           return modifier.toString()+td.toString()+" "+getSymbol()+"="+en.printNode(0)+";";
-    }
-
-    public String toStringBrief() {
-       return td.toString()+" "+getSymbol();
-    }
+  public static FieldDescriptor arrayLength=new FieldDescriptor(new Modifiers(Modifiers.PUBLIC|Modifiers.FINAL), new TypeDescriptor(TypeDescriptor.INT), "length", null, false);
+
+  protected Modifiers modifier;
+  protected TypeDescriptor td;
+  protected String identifier;
+  protected ExpressionNode en;
+  private boolean isglobal;
+
+  public FieldDescriptor(Modifiers m, TypeDescriptor t, String identifier, ExpressionNode e, boolean isglobal) {
+    super(identifier);
+    this.modifier=m;
+    this.td=t;
+    this.en=e;
+    this.safename = "___" + name + "___";
+    this.uniqueid=count++;
+    this.isglobal=isglobal;
+    if (en!=null) throw new Error("Field initializers not implemented");
+  }
+
+  public boolean isGlobal() {
+    return isglobal;
+  }
+
+  public TypeDescriptor getType() {
+    return td;
+  }
+
+  public String toString() {
+    if (en==null)
+      return modifier.toString()+td.toString()+" "+getSymbol()+";";
+    else
+      return modifier.toString()+td.toString()+" "+getSymbol()+"="+en.printNode(0)+";";
+  }
+
+  public String toStringBrief() {
+    return td.toString()+" "+getSymbol();
+  }
 }