/// <summary> /// Constructor /// </summary> /// <param name="whileCommand">While command</param> public EndWhile(While whileCommand) { WhileCommand = whileCommand; }
/// <summary> /// Ends a while statement /// </summary> /// <param name="whileCommand">While statement to end</param> public virtual void EndWhile(While whileCommand) { SetCurrentMethod(); var tempCommand = new EndWhile(whileCommand); tempCommand.Setup(); Commands.Add(tempCommand); }
/// <summary> /// Creates a while statement /// </summary> /// <param name="leftHandSide">Left hand side variable</param> /// <param name="comparisonType">Comparison type</param> /// <param name="rightHandSide">Right hand side variable</param> /// <returns>The while object</returns> public virtual While While(VariableBase leftHandSide, Comparison comparisonType, VariableBase rightHandSide) { SetCurrentMethod(); var tempCommand = new While(comparisonType, leftHandSide, rightHandSide); tempCommand.Setup(); Commands.Add(tempCommand); return tempCommand; }
/// <summary> /// Constructor /// </summary> /// <param name="whileCommand">While command</param> public EndWhile(While whileCommand) { WhileCommand = whileCommand; }