Change tabbing for everything....
[IRC.git] / Robust / src / IR / Flat / FlatLiteralNode.java
index 585143176a89505838601cdbde8b5ad7770a7b0c..99c1087d2295800214aaea9b380210f1b5a763c3 100644 (file)
@@ -2,56 +2,56 @@ package IR.Flat;
 import IR.TypeDescriptor;
 
 public class FlatLiteralNode extends FlatNode {
-    Object value;
-    TypeDescriptor type;
-    TempDescriptor dst;
-
-    public FlatLiteralNode(TypeDescriptor type, Object o, TempDescriptor dst) {
-       this.type=type;
-       value=o;
-       this.dst=dst;
-    }
-
-    public TypeDescriptor getType() {
-       return type;
-    }
-
-    public TempDescriptor getDst() {
-       return dst;
-    }
-
-    public Object getValue() {
-       return value;
-    }
-
-    public String toString() {
-       String str = "FlatLiteralNode_"+dst;
-       if (value==null)
-           str += "=null";
-       else
-           str += "="+escapeString(value.toString());
-       return str;
-    }
-    protected static String escapeString(String st) {
-       String new_st="";
-       for(int i=0;i<st.length();i++) {
-           char x=st.charAt(i);
-           if (x=='\n')
-               new_st+="\\n";
-           else if (x=='\r')
-               new_st+="\\r";
-           else if (x=='"')
-               new_st+="\\\"";
-           else new_st+=x;
-       }
-       return new_st;
-    }
-
-    public int kind() {
-       return FKind.FlatLiteralNode;
-    }
-
-    public TempDescriptor [] writesTemps() {
-       return new TempDescriptor[] {dst};
-    }
+  Object value;
+  TypeDescriptor type;
+  TempDescriptor dst;
+
+  public FlatLiteralNode(TypeDescriptor type, Object o, TempDescriptor dst) {
+    this.type=type;
+    value=o;
+    this.dst=dst;
+  }
+
+  public TypeDescriptor getType() {
+    return type;
+  }
+
+  public TempDescriptor getDst() {
+    return dst;
+  }
+
+  public Object getValue() {
+    return value;
+  }
+
+  public String toString() {
+    String str = "FlatLiteralNode_"+dst;
+    if (value==null)
+      str += "=null";
+    else
+      str += "="+escapeString(value.toString());
+    return str;
+  }
+  protected static String escapeString(String st) {
+    String new_st="";
+    for(int i=0; i<st.length(); i++) {
+      char x=st.charAt(i);
+      if (x=='\n')
+       new_st+="\\n";
+      else if (x=='\r')
+       new_st+="\\r";
+      else if (x=='"')
+       new_st+="\\\"";
+      else new_st+=x;
+    }
+    return new_st;
+  }
+
+  public int kind() {
+    return FKind.FlatLiteralNode;
+  }
+
+  public TempDescriptor [] writesTemps() {
+    return new TempDescriptor[] {dst};
+  }
 }