Class ExpressionRewriter
An implementation of IRewriter<T> for Expressions.
Inheritance
- Object
- ExpressionRewriter
Implements
Declaration
public class ExpressionRewriter : Object, IRewriter<Expression>
Constructors
ExpressionRewriter()
Create a new instance of ExpressionRewriter
Declaration
protected ExpressionRewriter()
Properties
Instance
Gets the single global instance of ExpressionRewriter.
Declaration
public static ExpressionRewriter Instance { get; }
Property Value
Type | Description |
---|---|
The single global instance of ExpressionRewriter. |
Methods
CountChildren(Expression)
Declaration
public int CountChildren(Expression value)
Parameters
Type | Name | Description |
---|---|---|
value |
Returns
Type | Description |
---|---|
GetChildren(Span<Expression>, Expression)
Declaration
public void GetChildren(Span<Expression> children, Expression value)
Parameters
Type | Name | Description |
---|---|---|
children |
||
value |
SetChildren(ReadOnlySpan<Expression>, Expression)
Declaration
public Expression SetChildren(ReadOnlySpan<Expression> newChildren, Expression oldValue)
Parameters
Type | Name | Description |
---|---|---|
newChildren |
||
oldValue |
Returns
Type | Description |
---|---|