public void AddInstruction(Instruction.Type instructionType) { if (Instructions.Count > 0 && instructionType == Instructions.Last().InstructionType) { Instructions.Last().Repeat++; } else { Instructions.Add(new Instruction(instructionType)); } }
public void AddInstruction(Instruction.Type instructionType) { Instructions.Add(new Instruction(instructionType)); }