示例#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;
 }