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