internal override void Dump(IndentedTextWriter w) { w.WriteLine("Action: " + System.Enum.GetName(typeof(ActionKind), this.ActionId)); for (int i = 0; i < Constants.Length; i++) { w.Write(i + ":" + PrimitiveString.EscapeString(Constants[i]) + "\t"); } w.WriteLine(""); }
internal override void ToFlashAsm(IndentedTextWriter w) { if (ActionRecords.CurrentConstantPool != null && ActionRecords.CurrentConstantPool.Constants.Length > Constant8Value) { string s = ActionRecords.CurrentConstantPool.Constants[Constant8Value]; w.Write("'" + PrimitiveString.EscapeString(s) + "'"); } else { w.Write("cp: " + Constant8Value + " "); } }
internal override 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 + " "); } }
// todo: getIndex #if SWFASM internal override 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(""); }