While command
Inheritance: Yea.Reflection.Emit.BaseClasses.CommandBase
Beispiel #1
0
 /// <summary>
 ///     Constructor
 /// </summary>
 /// <param name="whileCommand">While command</param>
 public EndWhile(While whileCommand)
 {
     WhileCommand = whileCommand;
 }
Beispiel #2
0
 /// <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);
 }
Beispiel #3
0
 /// <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;
 }
Beispiel #4
0
 /// <summary>
 ///     Constructor
 /// </summary>
 /// <param name="whileCommand">While command</param>
 public EndWhile(While whileCommand)
 {
     WhileCommand = whileCommand;
 }