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
nodeBinaryExpressionThe 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
nodeBlockExpressionThe 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
nodeCatchBlockThe 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
nodeConditionalExpressionThe 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
nodeConstantExpressionThe 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
nodeDebugInfoExpressionThe 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
nodeDefaultExpressionThe 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
nodeElementInitThe 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
nodeExpressionThe 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
nodeGotoExpressionThe 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
nodeIndexExpressionThe 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
nodeInvocationExpressionThe 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
nodeLabelExpressionThe 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
nodeLabelTargetThe 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
nodeExpression<T>The expression to visit.
Returns
- Expression
The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.
Type Parameters
TThe type of the delegate.
VisitListInit(ListInitExpression)
Visits the children of the ListInitExpression.
protected override Expression VisitListInit(ListInitExpression node)
Parameters
nodeListInitExpressionThe 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
nodeLoopExpressionThe 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
nodeMemberExpressionThe 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
nodeMemberAssignmentThe 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
nodeMemberInitExpressionThe 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
nodeMemberListBindingThe 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
nodeMemberMemberBindingThe 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
nodeMethodCallExpressionThe 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
nodeNewExpressionThe 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
nodeNewArrayExpressionThe 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
nodeParameterExpressionThe 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
nodeRuntimeVariablesExpressionThe 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
nodeSwitchExpressionThe 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
nodeSwitchCaseThe 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
nodeTryExpressionThe 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
nodeTypeBinaryExpressionThe 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
nodeUnaryExpressionThe expression to visit.
Returns
- Expression
The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.