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
BinaryExpressionThe 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
BlockExpressionThe 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
CatchBlockThe 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
ConditionalExpressionThe 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
ConstantExpressionThe 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
DebugInfoExpressionThe 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
DefaultExpressionThe 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
ElementInitThe 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
ExpressionThe 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
GotoExpressionThe 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
IndexExpressionThe 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
InvocationExpressionThe 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
LabelExpressionThe 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
LabelTargetThe 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
ListInitExpressionThe 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
LoopExpressionThe 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
MemberExpressionThe 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
MemberAssignmentThe 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
MemberInitExpressionThe 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
MemberListBindingThe 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
MemberMemberBindingThe 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
MethodCallExpressionThe 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
NewExpressionThe 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
NewArrayExpressionThe 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
ParameterExpressionThe 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
RuntimeVariablesExpressionThe 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
SwitchExpressionThe 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
SwitchCaseThe 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
TryExpressionThe 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
TypeBinaryExpressionThe 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
UnaryExpressionThe expression to visit.
Returns
- Expression
The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.