Struct SqlNodeMutatorContext.MutationResult
- Namespace
- LfrlAnvil.Sql.Expressions.Visitors
- Assembly
- LfrlAnvil.Sql.Core.dll
Represents a result of an SqlNodeBase mutation attempt.
protected readonly struct SqlNodeMutatorContext.MutationResult
- Inherited Members
Properties
IsNode
Specifies whether or not the Value should be recursively visited.
public bool IsNode { get; }
Property Value
Remarks
When this property is equal to true, then the Value is recursively visited, otherwise the recursion ends with the Value and its SQL syntax sub-tree will remain unchanged.
Value
Underlying SqlNodeBase instance which is the result of mutation.
public SqlNodeBase Value { get; }
Property Value
Methods
Deconstruct(out SqlNodeBase, out bool)
Deconstruct the given SqlNodeMutatorContext.MutationResult instance.
public void Deconstruct(out SqlNodeBase value, out bool isNode)
Parameters
value
SqlNodeBaseout parameter that returns Value.
isNode
boolout parameter that returns IsNode.
Operators
implicit operator MutationResult(SqlNodeBase)
Creates a new SqlNodeMutatorContext.MutationResult instance with IsNode equal to false.
[Pure]
public static implicit operator SqlNodeMutatorContext.MutationResult(SqlNodeBase value)
Parameters
value
SqlNodeBaseSQL node.