示例#1
0
 public CodeAwaitExpression Await(CodeExpression exp)
 {
     return(new CodeAwaitExpression(exp));
 }
 public CodeAwaitExpression(CodeExpression exp)
 {
     this.Expression = exp;
 }
示例#3
0
 public CodeArrayIndexerExpression Aref(CodeExpression exp, CodeExpression[] indices)
 {
     return(new CodeArrayIndexerExpression(exp, indices));
 }
示例#4
0
 public CodeFromClause From(CodeExpression id, CodeExpression collection)
 {
     return(new CodeFromClause(id, collection));
 }
示例#5
0
 public CodeBinaryOperatorExpression BinOp(CodeExpression l, CodeOperatorType op, CodeExpression r)
 {
     return(new CodeBinaryOperatorExpression(l, op, r));
 }
示例#6
0
 public CodeMethodReferenceExpression MethodRef(CodeExpression exp, string methodName)
 {
     return(new CodeMethodReferenceExpression(exp, methodName));
 }
示例#7
0
 public CodeWhereClause Where(CodeExpression e)
 {
     return(new CodeWhereClause(e));
 }
示例#8
0
 public CodeExpression Appl(CodeExpression fn, params CodeExpression [] args)
 {
     return(new CodeApplicationExpression(fn, args));
 }
示例#9
0
 public CodeExpression Sub(CodeExpression minuend, CodeExpression subtrahend)
 {
     return(new CodeBinaryOperatorExpression(minuend, CodeOperatorType.Sub, subtrahend));
 }
示例#10
0
 public void GenerateCodeFromExpression(CodeExpression csExp, TextWriter writer, CodeGeneratorOptions codeGeneratorOptions)
 {
     this.writer = new IndentingTextWriter(writer);
     csExp.Accept(new CSharpExpressionWriter(this.writer));
 }
示例#11
0
 public CodeSelectClause(CodeExpression projection)
 {
     this.Projection = projection;
 }
示例#12
0
 public CodeWhereClause(CodeExpression e)
 {
     this.Condition = e;
 }
 public CodeThrowExceptionStatement(CodeExpression e)
 {
     this.Expression = e;
 }
示例#14
0
 public CodeCastExpression(CodeTypeReference type, CodeExpression exp)
 {
     this.TargetType = type;
     this.Expression = exp;
 }
示例#15
0
 public CodeExpression Lambda(CodeExpression[] args, CodeExpression expr)
 {
     return(new CodeLambdaExpression(args, expr));
 }
示例#16
0
 public CodeExpression Add(CodeExpression augend, CodeExpression addend)
 {
     return(new CodeBinaryOperatorExpression(augend, CodeOperatorType.Add, addend));
 }
示例#17
0
 public CodeCastExpression Cast(CodeTypeReference type, CodeExpression exp)
 {
     return(new CodeCastExpression(type, exp));
 }
示例#18
0
 public CodeExpression Div(CodeExpression dividend, CodeExpression divisor)
 {
     return(new CodeBinaryOperatorExpression(dividend, CodeOperatorType.Div, divisor));
 }
示例#19
0
 public CodeLetClause Let(CodeExpression id, CodeExpression value)
 {
     return(new CodeLetClause(id, value));
 }
示例#20
0
 public CodeExpression Mul(CodeExpression multiplicand, CodeExpression multiplier)
 {
     return(new CodeBinaryOperatorExpression(multiplicand, CodeOperatorType.Mul, multiplier));
 }
示例#21
0
 public CodeExpression Access(CodeExpression exp, string fieldName)
 {
     return(new CodeFieldReferenceExpression(exp, fieldName));
 }
示例#22
0
 public CodeExpression ApplyMethod(CodeExpression obj, string method, params CodeExpression[] args)
 {
     return(new CodeApplicationExpression(
                this.MethodRef(obj, method),
                args));
 }
示例#23
0
 public CodeQueryClause Select(CodeExpression projection)
 {
     return(new CodeSelectClause(projection));
 }
示例#24
0
 public CodeParameterDeclarationExpression Param(Type type, string name, CodeExpression defaultValue)
 {
     return(new CodeParameterDeclarationExpression(type, name, defaultValue));
 }
示例#25
0
 public CodeMethodReferenceExpression(CodeExpression r, string p)
 {
     this.TargetObject   = r;
     this.MethodName     = p;
     this.TypeReferences = new List <CodeTypeReference>();
 }
示例#26
0
 public CodeFieldReferenceExpression(CodeExpression exp, string fieldName)
 {
     this.Expression = exp;
     this.FieldName  = fieldName;
 }