C# Class LinqKit.ExpressionVisitor

This comes from Matt Warren's sample: http://blogs.msdn.com/mattwar/archive/2007/07/31/linq-building-an-iqueryable-provider-part-ii.aspx
Mostrar archivo Open project: scottksmith95/LINQKit

Public Methods

Method Description
Visit ( Expression exp ) : Expression

Visit expression tree

Protected Methods

Method Description
VisitBinary ( BinaryExpression b ) : Expression

Visit two-parameter expression

VisitBinding ( MemberBinding binding ) : MemberBinding

Visit member binding

VisitBindingList ( ReadOnlyCollection original ) : IEnumerable

Visit list of bindings

VisitConditional ( ConditionalExpression c ) : Expression

Simplify conditional expression

VisitConstant ( ConstantExpression c ) : Expression

Return constant expression

VisitElementInitializer ( ElementInit initializer ) : ElementInit

Visit element initializer

VisitElementInitializerList ( ReadOnlyCollection original ) : IEnumerable

Visit list of element-initializers

VisitExpressionList ( ReadOnlyCollection original ) : ReadOnlyCollection

Visit list of expressions

VisitInvocation ( InvocationExpression iv ) : Expression

Visit invocation expression

VisitLambda ( LambdaExpression lambda ) : Expression

Visit lambda expression

VisitListInit ( ListInitExpression init ) : Expression

Visit list init expression

VisitMemberAccess ( MemberExpression m ) : Expression

Visit member access

VisitMemberAssignment ( MemberAssignment assignment ) : MemberAssignment

Visit member assignment

VisitMemberInit ( MemberInitExpression init ) : Expression

Visit member init expression

VisitMemberListBinding ( MemberListBinding binding ) : MemberListBinding

Visit member list binding

VisitMemberMemberBinding ( MemberMemberBinding binding ) : MemberMemberBinding

Visit member binding

VisitMethodCall ( MethodCallExpression m ) : Expression

Visit method call

VisitNew ( NewExpression nex ) : NewExpression

Visit new-expression

VisitNewArray ( NewArrayExpression na ) : Expression

Visit array expression

VisitParameter ( System.Linq.Expressions.ParameterExpression p ) : Expression

Return parameter expression

VisitTypeIs ( TypeBinaryExpression b ) : Expression

Visit type-is expression

VisitUnary ( UnaryExpression u ) : Expression

Visit one-parameter expression

Method Details

Visit() public method

Visit expression tree
public Visit ( Expression exp ) : Expression
exp System.Linq.Expressions.Expression
return System.Linq.Expressions.Expression

VisitBinary() protected method

Visit two-parameter expression
protected VisitBinary ( BinaryExpression b ) : Expression
b System.Linq.Expressions.BinaryExpression
return System.Linq.Expressions.Expression

VisitBinding() protected method

Visit member binding
protected VisitBinding ( MemberBinding binding ) : MemberBinding
binding System.Linq.Expressions.MemberBinding
return System.Linq.Expressions.MemberBinding

VisitBindingList() protected method

Visit list of bindings
protected VisitBindingList ( ReadOnlyCollection original ) : IEnumerable
original ReadOnlyCollection
return IEnumerable

VisitConditional() protected method

Simplify conditional expression
protected VisitConditional ( ConditionalExpression c ) : Expression
c System.Linq.Expressions.ConditionalExpression
return System.Linq.Expressions.Expression

VisitConstant() protected method

Return constant expression
protected VisitConstant ( ConstantExpression c ) : Expression
c System.Linq.Expressions.ConstantExpression
return System.Linq.Expressions.Expression

VisitElementInitializer() protected method

Visit element initializer
protected VisitElementInitializer ( ElementInit initializer ) : ElementInit
initializer System.Linq.Expressions.ElementInit
return System.Linq.Expressions.ElementInit

VisitElementInitializerList() protected method

Visit list of element-initializers
protected VisitElementInitializerList ( ReadOnlyCollection original ) : IEnumerable
original ReadOnlyCollection
return IEnumerable

VisitExpressionList() protected method

Visit list of expressions
protected VisitExpressionList ( ReadOnlyCollection original ) : ReadOnlyCollection
original ReadOnlyCollection
return ReadOnlyCollection

VisitInvocation() protected method

Visit invocation expression
protected VisitInvocation ( InvocationExpression iv ) : Expression
iv System.Linq.Expressions.InvocationExpression
return System.Linq.Expressions.Expression

VisitLambda() protected method

Visit lambda expression
protected VisitLambda ( LambdaExpression lambda ) : Expression
lambda System.Linq.Expressions.LambdaExpression
return System.Linq.Expressions.Expression

VisitListInit() protected method

Visit list init expression
protected VisitListInit ( ListInitExpression init ) : Expression
init System.Linq.Expressions.ListInitExpression
return System.Linq.Expressions.Expression

VisitMemberAccess() protected method

Visit member access
protected VisitMemberAccess ( MemberExpression m ) : Expression
m System.Linq.Expressions.MemberExpression
return System.Linq.Expressions.Expression

VisitMemberAssignment() protected method

Visit member assignment
protected VisitMemberAssignment ( MemberAssignment assignment ) : MemberAssignment
assignment System.Linq.Expressions.MemberAssignment
return System.Linq.Expressions.MemberAssignment

VisitMemberInit() protected method

Visit member init expression
protected VisitMemberInit ( MemberInitExpression init ) : Expression
init System.Linq.Expressions.MemberInitExpression
return System.Linq.Expressions.Expression

VisitMemberListBinding() protected method

Visit member list binding
protected VisitMemberListBinding ( MemberListBinding binding ) : MemberListBinding
binding System.Linq.Expressions.MemberListBinding
return System.Linq.Expressions.MemberListBinding

VisitMemberMemberBinding() protected method

Visit member binding
protected VisitMemberMemberBinding ( MemberMemberBinding binding ) : MemberMemberBinding
binding System.Linq.Expressions.MemberMemberBinding
return System.Linq.Expressions.MemberMemberBinding

VisitMethodCall() protected method

Visit method call
protected VisitMethodCall ( MethodCallExpression m ) : Expression
m System.Linq.Expressions.MethodCallExpression
return System.Linq.Expressions.Expression

VisitNew() protected method

Visit new-expression
protected VisitNew ( NewExpression nex ) : NewExpression
nex System.Linq.Expressions.NewExpression
return System.Linq.Expressions.NewExpression

VisitNewArray() protected method

Visit array expression
protected VisitNewArray ( NewArrayExpression na ) : Expression
na System.Linq.Expressions.NewArrayExpression
return System.Linq.Expressions.Expression

VisitParameter() protected method

Return parameter expression
protected VisitParameter ( System.Linq.Expressions.ParameterExpression p ) : Expression
p System.Linq.Expressions.ParameterExpression
return System.Linq.Expressions.Expression

VisitTypeIs() protected method

Visit type-is expression
protected VisitTypeIs ( TypeBinaryExpression b ) : Expression
b System.Linq.Expressions.TypeBinaryExpression
return System.Linq.Expressions.Expression

VisitUnary() protected method

Visit one-parameter expression
protected VisitUnary ( UnaryExpression u ) : Expression
u System.Linq.Expressions.UnaryExpression
return System.Linq.Expressions.Expression