public Continuation(InstructionId instruction = null) { NextInstructions = instruction == null ? new List <InstructionId>() : new List <InstructionId> { instruction }; }
public Instruction(Statement statement, InstructionId id, Continuation continuation = null) { Id = id; Statement = statement ?? throw new Exception("Instruction statement can't be null"); Continuation = continuation ?? new Continuation(); }