31 references to AddSuppressWrappingIfOnSingleLineOperation
Microsoft.CodeAnalysis.CSharp.CodeStyle (31)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\BaseFormattingRule.cs (2)
192
AddSuppressWrappingIfOnSingleLineOperation
(list, firstTokenOfNode, bracePair.closeBrace);
193
AddSuppressWrappingIfOnSingleLineOperation
(list, bracePair.openBrace, bracePair.closeBrace);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\QueryExpressionFormattingRule.cs (1)
48
AddSuppressWrappingIfOnSingleLineOperation
(list, queryExpression.GetFirstToken(includeZeroWidth: true), queryExpression.GetLastToken(includeZeroWidth: true));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (26)
40
AddSuppressWrappingIfOnSingleLineOperation
(list, ifStatementNode.IfKeyword, ifStatementNode.Statement.GetLastToken(includeZeroWidth: true));
44
AddSuppressWrappingIfOnSingleLineOperation
(list, ifStatementNode.Else.ElseKeyword, ifStatementNode.Else.Statement.GetLastToken(includeZeroWidth: true));
60
AddSuppressWrappingIfOnSingleLineOperation
(list, openParenToken, closeParenToken);
63
AddSuppressWrappingIfOnSingleLineOperation
(list, openParenToken, property.GetLastToken());
73
AddSuppressWrappingIfOnSingleLineOperation
(list, openBraceToken, closeBraceToken);
83
AddSuppressWrappingIfOnSingleLineOperation
(list, node.GetFirstToken(), node.GetLastToken());
91
AddSuppressWrappingIfOnSingleLineOperation
(list, node.GetFirstToken(), node.GetLastToken());
99
AddSuppressWrappingIfOnSingleLineOperation
(list, casePattern.GetFirstToken(), casePattern.GetLastToken());
107
AddSuppressWrappingIfOnSingleLineOperation
(list, isPattern.GetFirstToken(), isPattern.GetLastToken());
124
AddSuppressWrappingIfOnSingleLineOperation
(list, isPattern.IsKeyword, propertyPatternClause.GetLastToken());
136
AddSuppressWrappingIfOnSingleLineOperation
(list, constructorInitializerNode.ColonToken, constructorDeclarationNode.Body.CloseBraceToken);
144
AddSuppressWrappingIfOnSingleLineOperation
(list, whileStatementNode.GetFirstToken(includeZeroWidth: true), whileStatementNode.Statement.GetLastToken(includeZeroWidth: true));
153
AddSuppressWrappingIfOnSingleLineOperation
(list, firstToken, lastToken);
164
AddSuppressWrappingIfOnSingleLineOperation
(list,
172
AddSuppressWrappingIfOnSingleLineOperation
(list, firstToken, propertyDeclNode.AccessorList.GetLastToken());
180
AddSuppressWrappingIfOnSingleLineOperation
(list, accessorDeclNode.Keyword, accessorDeclNode.GetLastToken(includeZeroWidth: true));
188
AddSuppressWrappingIfOnSingleLineOperation
(list, switchSection.GetFirstToken(includeZeroWidth: true), switchSection.GetLastToken(includeZeroWidth: true));
198
AddSuppressWrappingIfOnSingleLineOperation
(list, switchSection.Labels[i].GetFirstToken(includeZeroWidth: true), switchSection.Labels[i].GetLastToken(includeZeroWidth: true));
205
AddSuppressWrappingIfOnSingleLineOperation
(list, switchSection.Labels[switchSection.Labels.Count - 1].GetFirstToken(includeZeroWidth: true), switchSection.GetLastToken(includeZeroWidth: true));
235
AddSuppressWrappingIfOnSingleLineOperation
(list, tryStatement.TryKeyword, tryStatement.Block.CloseBraceToken);
244
AddSuppressWrappingIfOnSingleLineOperation
(list, catchClause.CatchKeyword, catchClause.Block.CloseBraceToken);
253
AddSuppressWrappingIfOnSingleLineOperation
(list, finallyClause.FinallyKeyword, finallyClause.Block.CloseBraceToken);
259
AddSuppressWrappingIfOnSingleLineOperation
(list, interpolatedStringExpression.StringStartToken, interpolatedStringExpression.StringEndToken);
273
AddSuppressWrappingIfOnSingleLineOperation
(list, firstToken, lastToken);
402
AddSuppressWrappingIfOnSingleLineOperation
(list, parent.GetFirstToken(includeZeroWidth: true), parent.GetLastToken(includeZeroWidth: true));
412
AddSuppressWrappingIfOnSingleLineOperation
(list, firstToken, lastToken);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\WrappingFormattingRule.cs (2)
97
AddSuppressWrappingIfOnSingleLineOperation
(list, firstToken, lastToken);
111
AddSuppressWrappingIfOnSingleLineOperation
(list, firstToken, lastToken);