Пример #1
0
 public static void Foreach(this EmitBlockStatement block, EmitVariable item, EmitExpression collection, EmitStatement statement)
 {
     block.Statements.Add(collection.Foreach(item, statement));
 }
 public EmitVariableReferenceExpression(EmitVariable variable)
 {
     Variable = variable;
 }
Пример #3
0
 public EmitForeachStatement(EmitVariable item, EmitExpression collection, EmitStatement statement)
 {
     Item = item;
     Collection = collection;
     Statement = statement;
 }
Пример #4
0
 public static EmitForeachStatement Foreach(this EmitExpression collection, EmitVariable item, EmitStatement statement)
 {
     return new EmitForeachStatement(item, collection, statement);
 }
Пример #5
0
 public static void Foreach(this EmitBlockStatement block, EmitVariable item, EmitExpression collection, EmitStatement statement)
 {
     block.Statements.Add(collection.Foreach(item, statement));
 }
Пример #6
0
 public static EmitUnaryExpression PreIncrement(this EmitVariable operand)
 {
     return(new EmitUnaryExpression(EmitUnaryOperator.PrefixIncrement, operand));
 }
Пример #7
0
 public static EmitBinaryExpression ShiftRightAssign(this EmitVariable left, EmitExpression right)
 {
     return(new EmitBinaryExpression(left, EmitBinaryOperator.ShiftRightAssign, right));
 }
Пример #8
0
 public static EmitForeachStatement Foreach(this EmitExpression collection, EmitVariable item, EmitStatement statement)
 {
     return(new EmitForeachStatement(item, collection, statement));
 }
Пример #9
0
 public static EmitBinaryExpression BitwiseOrAssign(this EmitVariable left, EmitExpression right)
 {
     return(new EmitBinaryExpression(left, EmitBinaryOperator.BitwiseOrAssign, right));
 }
Пример #10
0
 public static EmitBinaryExpression Modulus(this EmitVariable left, EmitExpression right)
 {
     return(new EmitBinaryExpression(left, EmitBinaryOperator.Modulus, right));
 }
Пример #11
0
 public static EmitBinaryExpression MultiplyAssign(this EmitVariable left, EmitExpression right)
 {
     return(new EmitBinaryExpression(left, EmitBinaryOperator.MultiplyAssign, right));
 }
Пример #12
0
 public static EmitUnaryExpression PostDecrement(this EmitVariable operand)
 {
     return(new EmitUnaryExpression(EmitUnaryOperator.PostfixDecrement, operand));
 }
Пример #13
0
 public EmitForeachStatement(EmitVariable item, EmitExpression collection, EmitStatement statement)
 {
     Item       = item;
     Collection = collection;
     Statement  = statement;
 }