Class Rule<TSource, TTarget>
Represents a rewrite rule.
Inherited Members
Namespace: System.Linq.CompilerServices
Assembly: Nuqleon.Linq.CompilerServices.dll
Syntax
public sealed class Rule<TSource, TTarget> : RuleBase<TSource, TTarget>
Type Parameters
Name | Description |
---|---|
TSource | Type of the source tree nodes. |
TTarget | Type of the target tree nodes. |
Properties
Goal
Gets the lambda expression representing the rewrite goal applied by the rule.
Declaration
public LambdaExpression Goal { get; }
Property Value
Type | Description |
---|---|
System.Linq.Expressions.LambdaExpression |
Pattern
Gets the lambda expression representing the pattern matched by the rule.
Declaration
public LambdaExpression Pattern { get; }
Property Value
Type | Description |
---|---|
System.Linq.Expressions.LambdaExpression |
Methods
ToString()
Gets a diagnostic string representation of the rewrite rule.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String representation of the rewrite rule, used for diagnostic purposes. |