2 implementations of TryGetRoot
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\ImmutableIntervalTree`1.cs (1)
296
public bool
TryGetRoot
(ImmutableIntervalTree<T> tree, out int root)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\MutableIntervalTree`1.cs (1)
157
public bool
TryGetRoot
(MutableIntervalTree<T> tree, [NotNullWhen(true)] out Node? root)
2 references to TryGetRoot
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\IntervalTreeHelpers.cs (1)
81
if (!witness.
TryGetRoot
(tree, out var root))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\IntervalTreeHelpers.NodeEnumerator.cs (1)
40
_currentNodeHasValue = default(TIntervalTreeWitness).
TryGetRoot
(_tree, out _currentNode);