Пример #1
0
 public static Expression ModuloChecked(Expression left, Expression right)
 {
     return new ArithmeticExpression (left, right, ArithmeticKind.Modulo);
 }
Пример #2
0
 public static Statement Loop(Expression cond, StatementBlock block)
 {
     throw new NotImplementedException ();
 }
Пример #3
0
 public static Statement Switch(Expression cond, SwitchCase [] cases)
 {
     throw new NotImplementedException ();
 }
Пример #4
0
 public static VariableDeclarationStatement DeclareVariable(TypeInfo type, string name, Expression initializer)
 {
     return new VariableDeclarationStatement (type, name, initializer);
 }
Пример #5
0
 public static Statement IfThen(Expression cond, StatementBlock trueBlock)
 {
     return new IfStatement (cond, trueBlock, null);
 }
Пример #6
0
 public ParenthesizedExpression(Expression exp)
 {
     Body = exp;
 }
Пример #7
0
 public ReturnStatement(Expression value)
 {
     Value = value;
 }
Пример #8
0
 public static Expression OrElse(Expression left, Expression right)
 {
     return new LogicalOperationExpression (left, right, LogicalOperationKind.OrElse);
 }
Пример #9
0
 public static Expression Parenthesized(Expression exp)
 {
     return new ParenthesizedExpression (exp);
 }
Пример #10
0
 public static Expression Or(Expression left, Expression right)
 {
     return new ArithmeticExpression (left, right, ArithmeticKind.BitwiseOr);
 }
Пример #11
0
 public ArithmeticExpression(Expression left, Expression right, ArithmeticKind kind)
 {
     Left = left;
     Right = right;
     Kind = kind;
 }
Пример #12
0
 public static Expression NotEqual(Expression left, Expression right)
 {
     return new ComparisonExpression (left, right, ComparisonKind.NotEqual);
 }
Пример #13
0
 public static Expression Not(Expression operand)
 {
     if (operand == null)
         throw new ArgumentNullException ("operand");
     return new LogicalNotExpression (operand);
 }
Пример #14
0
 public static Expression MultiplyChecked(Expression left, Expression right)
 {
     return new ArithmeticExpression (left, right, ArithmeticKind.Multiply);
 }
Пример #15
0
 public LogicalNotExpression(Expression value)
 {
     if (value == null)
         throw new ArgumentNullException ("value");
     Value = value;
 }
Пример #16
0
 public static Expression PropertyOrField(Expression obj, string memberName)
 {
     return new FieldAccessExpression (obj, memberName);
 }
Пример #17
0
 public LogicalOperationExpression(Expression left, Expression right, LogicalOperationKind kind)
 {
     Left = left;
     Right = right;
     Kind = kind;
 }
Пример #18
0
 public static Expression RightShift(Expression left, Expression right)
 {
     throw new NotImplementedException ();
 }
Пример #19
0
 public ArrayAccessExpression(Expression array, Expression index)
 {
     Array = array;
     Index = index;
 }
Пример #20
0
 public static Expression SubtractChecked(Expression left, Expression right)
 {
     return new ArithmeticExpression (left, right, ArithmeticKind.Subtract);
 }
Пример #21
0
 public static Statement CallExpression(Expression exp)
 {
     return new CallableExpressionStatement (exp);
 }
Пример #22
0
 public FieldAccessExpression(Expression target, string memberName)
 {
     Target = target;
     MemberName = memberName;
 }
Пример #23
0
        public static Statement For(List<Statement> init,
			Expression cond,
			Statement cont,
			StatementBlock body)
        {
            return new ForStatement (init, cond, cont, body);
        }
Пример #24
0
        public ForStatement(List<Statement> init,
			Expression cond,
			Statement cont,
			StatementBlock body)
        {
            Initializers = init;
            Condition = cond;
            Continuer = cont;
            Body = body;
        }
Пример #25
0
 // It does not use StatementBlock to handle else-if statements as IfStatement (i.e. IfStatement(trueBlock, IfStatement(elseIfTrue, finalElseBlock)) etc.)
 public static Statement IfThenElse(Expression cond, Statement trueBlock, Statement falseBlock)
 {
     return new IfStatement (cond, trueBlock, falseBlock);
 }
Пример #26
0
 public FunctionCallExpression(Expression obj, string name, List<Expression> args)
 {
     Target = obj;
     Name = name;
     Arguments = args;
 }
Пример #27
0
 public static Statement Return(Expression value)
 {
     return new ReturnStatement (value);
 }
Пример #28
0
 public IfStatement(Expression cond, Statement trueBlock, Statement falseBlock)
 {
     Condition = cond;
     TrueBlock = trueBlock;
     FalseBlock = falseBlock;
 }
Пример #29
0
 public VariableDeclarationStatement(TypeInfo type, string name, Expression initializer)
 {
     Type = type;
     Name = name;
     Initializer = initializer;
 }
Пример #30
0
 public static Expression LessThanOrEqual(Expression left, Expression right)
 {
     return new ComparisonExpression (left, right, ComparisonKind.LessThanEqual);
 }