13 references to CommonFormattingHelpers
Microsoft.CodeAnalysis.Workspaces (13)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (3)
122
if (
CommonFormattingHelpers
.IndentBlockOperationComparer(startingOperation, list[i]) < 0)
223
list.Sort(
CommonFormattingHelpers
.IndentBlockOperationComparer);
306
list.Sort(
CommonFormattingHelpers
.IndentBlockOperationComparer);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (2)
131
operations.Sort(
CommonFormattingHelpers
.IndentBlockOperationComparer);
171
mergedList.Sort(
CommonFormattingHelpers
.IndentBlockOperationComparer);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (2)
121
operations.Sort(
CommonFormattingHelpers
.IndentBlockOperationComparer);
132
result.Sort(
CommonFormattingHelpers
.SuppressOperationComparer);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.AbstractComplexTrivia.cs (1)
28
_treatAsElastic =
CommonFormattingHelpers
.HasAnyWhitespaceElasticTrivia(token1, token2);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TreeData.Node.cs (1)
55
CommonFormattingHelpers
.AppendTextBetween(token1, token2, builder);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (2)
57
return
CommonFormattingHelpers
.HasAnyWhitespaceElasticTrivia(startToken.Token, nextToken.Token) ||
58
CommonFormattingHelpers
.HasAnyWhitespaceElasticTrivia(previousToken.Token, endToken.Token);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (2)
56
var span =
CommonFormattingHelpers
.GetSpanIncludingTrailingAndLeadingTriviaOfAdjacentTokens(startToken, endToken);
71
var span =
CommonFormattingHelpers
.GetSpanIncludingTrailingAndLeadingTriviaOfAdjacentTokens(startToken, endToken);