Class UriToReactiveBinderBase.BindingVisitor
Visitor to bind unbound parameters.
Inheritance
System.Object
UriToReactiveBinderBase.BindingVisitor
Namespace: Reaqtor
Assembly: Reaqtor.Shared.Core.dll
Syntax
protected class BindingVisitor : ScopedExpressionVisitor<ParameterExpression>
Constructors
BindingVisitor(UriToReactiveBinderBase)
Creates a new binding visitor.
Declaration
public BindingVisitor(UriToReactiveBinderBase parent)
Parameters
Type | Name | Description |
---|---|---|
UriToReactiveBinderBase | parent | Parent binder. |
Properties
Parameters
Gets the parameters to be bound.
Declaration
public ICollection<ParameterExpression> Parameters { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.ICollection<System.Linq.Expressions.ParameterExpression> |
Methods
GetState(ParameterExpression)
Maps the specified parameter on state tracked in the scoped symbol table.
Declaration
protected override sealed ParameterExpression GetState(ParameterExpression parameter)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.ParameterExpression | parameter | Parameter expression that's being declared. |
Returns
Type | Description |
---|---|
System.Linq.Expressions.ParameterExpression | The parameter itself. |
VisitParameter(ParameterExpression)
Visit parameters in the expression, checking for unbound status. If unbound, the parameter gets bound.
Declaration
protected override sealed Expression VisitParameter(ParameterExpression node)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.ParameterExpression | node | Parameter to analyze. |
Returns
Type | Description |
---|---|
System.Linq.Expressions.Expression | If bound, the original parameter is returned. Otherwise, the result of binding the parameter is returned. |