Beispiel #1
0
 public void Dump(IndentedTextWriter w)
 {
     w.WriteLine("Action: " + Enum.GetName(typeof(ActionKind), this.ActionId));
     for (int i = 0; i < Constants.Length; i++)
     {
         w.Write(i + ":" + PrimitiveString.EscapeString(Constants[i]) + "\t");
     }
     w.WriteLine("");
 }
Beispiel #2
0
 public void ToFlashAsm(IndentedTextWriter w)
 {
     if (ActionRecords.CurrentConstantPool != null && ActionRecords.CurrentConstantPool.Constants.Length > Constant16Value)
     {
         string s = ActionRecords.CurrentConstantPool.Constants[Constant16Value];
         w.Write("'" + PrimitiveString.EscapeString(s) + "'");
     }
     else
     {
         w.Write("cp: " + Constant16Value);
     }
 }
Beispiel #3
0
 public void Dump(IndentedTextWriter w)
 {
     if (ActionRecords.CurrentConstantPool != null && ActionRecords.CurrentConstantPool.Constants.Length > Constant16Value)
     {
         string s = ActionRecords.CurrentConstantPool.Constants[Constant16Value];
         w.WriteLine("cp_" + Constant16Value + " \"" +
                     PrimitiveString.EscapeString(s) + "\"");
     }
     else
     {
         w.WriteLine("cp: " + Constant16Value + " ");
     }
 }
Beispiel #4
0
        // todo: getIndex

        public void ToFlashAsm(IndentedTextWriter w)
        {
            string comma = Constants.Length > 1 ? ", " : "";

            w.Write("constants ");
            for (int i = 0; i < Constants.Length; i++)
            {
                w.Write("'" + PrimitiveString.EscapeString(Constants[i]) + "'" + comma);
                if (i == Constants.Length - 2)
                {
                    comma = "";
                }
            }
            w.WriteLine("");
        }