Table of Contents

Class ExpressionVisitorBase

Namespace
NMF.Expressions
Assembly
NMF.Expressions.dll

Denotes a base class for customized expression visitors

public class ExpressionVisitorBase : ExpressionVisitor
Inheritance
ExpressionVisitorBase
Derived
Inherited Members
Extension Methods

Methods

VisitBinary(BinaryExpression)

Visits the children of the BinaryExpression.

protected override Expression VisitBinary(BinaryExpression node)

Parameters

node BinaryExpression

The expression to visit.

Returns

Expression

The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.

VisitBlock(BlockExpression)

Visits the children of the BlockExpression.

protected override Expression VisitBlock(BlockExpression node)

Parameters

node BlockExpression

The expression to visit.

Returns

Expression

The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.

VisitCatchBlock(CatchBlock)

Visits the children of the CatchBlock.

protected override CatchBlock VisitCatchBlock(CatchBlock node)

Parameters

node CatchBlock

The expression to visit.

Returns

CatchBlock

The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.

VisitConditional(ConditionalExpression)

Visits the children of the ConditionalExpression.

protected override Expression VisitConditional(ConditionalExpression node)

Parameters

node ConditionalExpression

The expression to visit.

Returns

Expression

The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.

VisitConstant(ConstantExpression)

Visits the ConstantExpression.

protected override Expression VisitConstant(ConstantExpression node)

Parameters

node ConstantExpression

The expression to visit.

Returns

Expression

The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.

VisitDebugInfo(DebugInfoExpression)

Visits the DebugInfoExpression.

protected override Expression VisitDebugInfo(DebugInfoExpression node)

Parameters

node DebugInfoExpression

The expression to visit.

Returns

Expression

The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.

VisitDefault(DefaultExpression)

Visits the DefaultExpression.

protected override Expression VisitDefault(DefaultExpression node)

Parameters

node DefaultExpression

The expression to visit.

Returns

Expression

The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.

VisitElementInit(ElementInit)

Visits the children of the ElementInit.

protected override ElementInit VisitElementInit(ElementInit node)

Parameters

node ElementInit

The expression to visit.

Returns

ElementInit

The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.

VisitExtension(Expression)

Visits the children of the extension expression.

protected override Expression VisitExtension(Expression node)

Parameters

node Expression

The expression to visit.

Returns

Expression

The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.

VisitGoto(GotoExpression)

Visits the children of the GotoExpression.

protected override Expression VisitGoto(GotoExpression node)

Parameters

node GotoExpression

The expression to visit.

Returns

Expression

The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.

VisitIndex(IndexExpression)

Visits the children of the IndexExpression.

protected override Expression VisitIndex(IndexExpression node)

Parameters

node IndexExpression

The expression to visit.

Returns

Expression

The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.

VisitInvocation(InvocationExpression)

Visits the children of the InvocationExpression.

protected override Expression VisitInvocation(InvocationExpression node)

Parameters

node InvocationExpression

The expression to visit.

Returns

Expression

The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.

VisitLabel(LabelExpression)

Visits the children of the LabelExpression.

protected override Expression VisitLabel(LabelExpression node)

Parameters

node LabelExpression

The expression to visit.

Returns

Expression

The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.

VisitLabelTarget(LabelTarget)

Visits the LabelTarget.

protected override LabelTarget VisitLabelTarget(LabelTarget node)

Parameters

node LabelTarget

The expression to visit.

Returns

LabelTarget

The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.

VisitLambda<T>(Expression<T>)

Visits the children of the Expression<TDelegate>.

protected override Expression VisitLambda<T>(Expression<T> node)

Parameters

node Expression<T>

The expression to visit.

Returns

Expression

The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.

Type Parameters

T

The type of the delegate.

VisitListInit(ListInitExpression)

Visits the children of the ListInitExpression.

protected override Expression VisitListInit(ListInitExpression node)

Parameters

node ListInitExpression

The expression to visit.

Returns

Expression

The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.

VisitLoop(LoopExpression)

Visits the children of the LoopExpression.

protected override Expression VisitLoop(LoopExpression node)

Parameters

node LoopExpression

The expression to visit.

Returns

Expression

The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.

VisitMember(MemberExpression)

Visits the children of the MemberExpression.

protected override Expression VisitMember(MemberExpression node)

Parameters

node MemberExpression

The expression to visit.

Returns

Expression

The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.

VisitMemberAssignment(MemberAssignment)

Visits the children of the MemberAssignment.

protected override MemberAssignment VisitMemberAssignment(MemberAssignment node)

Parameters

node MemberAssignment

The expression to visit.

Returns

MemberAssignment

The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.

VisitMemberInit(MemberInitExpression)

Visits the children of the MemberInitExpression.

protected override Expression VisitMemberInit(MemberInitExpression node)

Parameters

node MemberInitExpression

The expression to visit.

Returns

Expression

The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.

VisitMemberListBinding(MemberListBinding)

Visits the children of the MemberListBinding.

protected override MemberListBinding VisitMemberListBinding(MemberListBinding node)

Parameters

node MemberListBinding

The expression to visit.

Returns

MemberListBinding

The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.

VisitMemberMemberBinding(MemberMemberBinding)

Visits the children of the MemberMemberBinding.

protected override MemberMemberBinding VisitMemberMemberBinding(MemberMemberBinding node)

Parameters

node MemberMemberBinding

The expression to visit.

Returns

MemberMemberBinding

The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.

VisitMethodCall(MethodCallExpression)

Visits the children of the MethodCallExpression.

protected override Expression VisitMethodCall(MethodCallExpression node)

Parameters

node MethodCallExpression

The expression to visit.

Returns

Expression

The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.

VisitNew(NewExpression)

Visits the children of the NewExpression.

protected override Expression VisitNew(NewExpression node)

Parameters

node NewExpression

The expression to visit.

Returns

Expression

The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.

VisitNewArray(NewArrayExpression)

Visits the children of the NewArrayExpression.

protected override Expression VisitNewArray(NewArrayExpression node)

Parameters

node NewArrayExpression

The expression to visit.

Returns

Expression

The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.

VisitParameter(ParameterExpression)

Visits the ParameterExpression.

protected override Expression VisitParameter(ParameterExpression node)

Parameters

node ParameterExpression

The expression to visit.

Returns

Expression

The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.

VisitRuntimeVariables(RuntimeVariablesExpression)

Visits the children of the RuntimeVariablesExpression.

protected override Expression VisitRuntimeVariables(RuntimeVariablesExpression node)

Parameters

node RuntimeVariablesExpression

The expression to visit.

Returns

Expression

The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.

VisitSwitch(SwitchExpression)

Visits the children of the SwitchExpression.

protected override Expression VisitSwitch(SwitchExpression node)

Parameters

node SwitchExpression

The expression to visit.

Returns

Expression

The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.

VisitSwitchCase(SwitchCase)

Visits the children of the SwitchCase.

protected override SwitchCase VisitSwitchCase(SwitchCase node)

Parameters

node SwitchCase

The expression to visit.

Returns

SwitchCase

The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.

VisitTry(TryExpression)

Visits the children of the TryExpression.

protected override Expression VisitTry(TryExpression node)

Parameters

node TryExpression

The expression to visit.

Returns

Expression

The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.

VisitTypeBinary(TypeBinaryExpression)

Visits the children of the TypeBinaryExpression.

protected override Expression VisitTypeBinary(TypeBinaryExpression node)

Parameters

node TypeBinaryExpression

The expression to visit.

Returns

Expression

The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.

VisitUnary(UnaryExpression)

Visits the children of the UnaryExpression.

protected override Expression VisitUnary(UnaryExpression node)

Parameters

node UnaryExpression

The expression to visit.

Returns

Expression

The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.