9 references to FormattingRangeHelper
Microsoft.CodeAnalysis.CSharp.CodeStyle (9)
src\Analyzers\CSharp\Analyzers\AddBraces\CSharpAddBracesDiagnosticAnalyzer.cs (5)
15
using FormattingRangeHelper = Microsoft.CodeAnalysis.CSharp.Utilities.
FormattingRangeHelper
;
162
if (
FormattingRangeHelper
.AreTwoTokensOnSameLine(statement.GetFirstToken(), statement.GetLastToken()))
174
if (!
FormattingRangeHelper
.AreTwoTokensOnSameLine(statement.GetFirstToken(), lastTokenBeforeEmbeddedStatement))
186
if (!
FormattingRangeHelper
.AreTwoTokensOnSameLine(embeddedStatement.GetFirstToken(), embeddedStatement.GetLastToken()))
216
if (!
FormattingRangeHelper
.AreTwoTokensOnSameLine(firstTokenAfterEmbeddedStatement, statement.GetLastToken()))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
353
=>
FormattingRangeHelper
.IsColonInSwitchLabel(token);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (3)
196
if (!
FormattingRangeHelper
.InBetweenTwoMembers(previousToken, currentToken))
201
var previousMember =
FormattingRangeHelper
.GetEnclosingMember(previousToken);
202
var nextMember =
FormattingRangeHelper
.GetEnclosingMember(currentToken);