12 references to FormattingRangeHelper
Microsoft.CodeAnalysis.CSharp.Features (4)
src\Analyzers\CSharp\Analyzers\AddBraces\CSharpAddBracesDiagnosticAnalyzer.cs (4)
162if (FormattingRangeHelper.AreTwoTokensOnSameLine(statement.GetFirstToken(), statement.GetLastToken())) 174if (!FormattingRangeHelper.AreTwoTokensOnSameLine(statement.GetFirstToken(), lastTokenBeforeEmbeddedStatement)) 186if (!FormattingRangeHelper.AreTwoTokensOnSameLine(embeddedStatement.GetFirstToken(), embeddedStatement.GetLastToken())) 216if (!FormattingRangeHelper.AreTwoTokensOnSameLine(firstTokenAfterEmbeddedStatement, statement.GetLastToken()))
Microsoft.CodeAnalysis.CSharp.Workspaces (8)
Formatting\CSharpSyntaxFormattingService.cs (1)
162var tokenRange = FormattingRangeHelper.FindAppropriateRange(endToken);
Formatting\TypingFormattingRule.cs (1)
84if (FormattingRangeHelper.AreTwoTokensOnSameLine(firstTokenOfNode, firstStatement.GetFirstToken()))
Simplification\Reducers\CSharpMiscellaneousReducer.cs (2)
154if (!FormattingRangeHelper.AreTwoTokensOnSameLine(node.Statements[0].GetFirstToken(), node.Statements[0].GetLastToken())) 160if (!FormattingRangeHelper.AreTwoTokensOnSameLine(node.Parent.GetFirstToken(), node.GetFirstToken().GetPreviousToken()))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
353=> FormattingRangeHelper.IsColonInSwitchLabel(token);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (3)
196if (!FormattingRangeHelper.InBetweenTwoMembers(previousToken, currentToken)) 201var previousMember = FormattingRangeHelper.GetEnclosingMember(previousToken); 202var nextMember = FormattingRangeHelper.GetEnclosingMember(currentToken);