8 references to AreTwoTokensOnSameLine
Microsoft.CodeAnalysis.CSharp.Workspaces (8)
Formatting\TypingFormattingRule.cs (1)
84
if (FormattingRangeHelper.
AreTwoTokensOnSameLine
(firstTokenOfNode, firstStatement.GetFirstToken()))
Simplification\Reducers\CSharpMiscellaneousReducer.cs (2)
154
if (!FormattingRangeHelper.
AreTwoTokensOnSameLine
(node.Statements[0].GetFirstToken(), node.Statements[0].GetLastToken()))
160
if (!FormattingRangeHelper.
AreTwoTokensOnSameLine
(node.Parent.GetFirstToken(), node.GetFirstToken().GetPreviousToken()))
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))