4 references to GetCommonRoot
Microsoft.CodeAnalysis.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (1)
70
var node = startToken.
GetCommonRoot
(endToken)!.GetParentWithBiggerSpan();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (1)
105
_commonRoot = startToken.
GetCommonRoot
(endToken) ?? throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
83
var commonRoot = this.Token.
GetCommonRoot
(other.Token);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\BaseIndentationFormattingRule.cs (1)
146
commonNode = token1.
GetCommonRoot
(token2);