Beispiel #1
0
 internal ForEach(IRightable collection, string loopVariable)
 {
     if (collection == null)
     {
         throw new ArgumentException();
     }
     CollectionSourceVar = collection;
     LoopVarName         = loopVariable;
     CodeLines           = new List <ICodeLine>();
 }
		public OperationNew(Type dataType, IRightable[] variables)
		{
			DataType = dataType;
			Variables = variables;
		}
 public static ICodeLine Assign(string lVariableName, IRightable rValue, AssignementOperator assignType = AssignementOperator.Assign)
 {
     return(Assign(Operation.Variable(lVariableName), rValue, assignType));
 }
 public static ICodeLine Assign(ILeftable lValue, IRightable rValue, AssignementOperator assignType = AssignementOperator.Assign)
 {
     return(new Assign(lValue, rValue, assignType));
 }
Beispiel #5
0
		public Assign(ILeftable lvalue, IRightable rValue, AssignementOperator assignType)
		{
			LValue = lvalue;
			RValue = rValue;
			AssignType = assignType;
		}
Beispiel #6
0
 public Assign(ILeftable lvalue, IRightable rValue, AssignementOperator assignType)
 {
     LValue     = lvalue;
     RValue     = rValue;
     AssignType = assignType;
 }