Struct SqlNodeAncestors
Represents a stack of SqlNodeBase ancestor nodes.
public readonly struct SqlNodeAncestors
- Inherited Members
Properties
Count
Number of ancestors.
public int Count { get; }
Property Value
this[int]
Gets an ancestor node at the provided 0-base index
in this stack.
public SqlNodeBase this[int index] { get; }
Parameters
index
int0-based position of the ancestor node to get.
Property Value
Exceptions
- IndexOutOfRangeException
When
index
is out of bounds.
Methods
FindIndex(SqlNodeBase)
Attempts to find a 0-based index of the provided node
in this stack.
[Pure]
public int FindIndex(SqlNodeBase node)
Parameters
node
SqlNodeBaseAncestor node to find.
Returns
- int
0-based index of the provided
node
if it exists in this stack, otherwise -1.