Table of Contents

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

bool

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

SqlNodeBase

Methods

Deconstruct(out SqlNodeBase, out bool)

Deconstruct the given SqlNodeMutatorContext.MutationResult instance.

public void Deconstruct(out SqlNodeBase value, out bool isNode)

Parameters

value SqlNodeBase

out parameter that returns Value.

isNode bool

out 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 SqlNodeBase

SQL node.

Returns

SqlNodeMutatorContext.MutationResult

New SqlNodeMutatorContext.MutationResult instance.