9 references to AreTwoTokensOnSameLine
Microsoft.CodeAnalysis.CSharp.CodeStyle (9)
src\Analyzers\CSharp\Analyzers\AddBraces\CSharpAddBracesDiagnosticAnalyzer.cs (4)
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\Utilities\FormattingRangeHelper.cs (5)
43
if (closeBrace.Kind() == SyntaxKind.None || !
AreTwoTokensOnSameLine
(previousToken, closeBrace))
139
AreTwoTokensOnSameLine
(propertyDeclaration.AccessorList!.OpenBraceToken, propertyDeclaration.AccessorList.CloseBraceToken))
218
var twoTokensOnSameLine =
AreTwoTokensOnSameLine
(firstTokenOfInnerBlock, lastTokenOfInnerBlock);
253
var twoTokensOnSameLine =
AreTwoTokensOnSameLine
(firstTokenOfInnerBlock, lastTokenOfInnerBlock);
316
if (
AreTwoTokensOnSameLine
(previousToken, startToken))