示例#1
0
 public static void ReplaceInstruction(
     this List <CodeInstruction> codes, int index, CodeInstruction insertion)
 {
     TranspilerUtils.ReplaceInstructions(codes, new[] { insertion }, index);
 }
示例#2
0
 public static void InsertInstructions(
     this List <CodeInstruction> codes, int index, CodeInstruction insertion, bool moveLabels = true)
 {
     TranspilerUtils.InsertInstructions(codes, new[] { insertion }, index, moveLabels);
 }
示例#3
0
 public static void ReplaceInstruction(
     this List <CodeInstruction> codes, int index, IEnumerable <CodeInstruction> insertion)
 {
     TranspilerUtils.ReplaceInstructions(codes, insertion.ToArray(), index);
 }
示例#4
0
 public static void InsertInstructions(
     this List <CodeInstruction> codes, int index, IEnumerable <CodeInstruction> insertion, bool moveLabels = true)
 {
     TranspilerUtils.InsertInstructions(codes, insertion.ToArray(), index, moveLabels);
 }