25 references to ForceLines
Microsoft.CodeAnalysis.CodeStyle (6)
AbstractFormatEngine.OperationApplier.cs (1)
151else if (operation.Option == AdjustNewLinesOption.ForceLines)
AbstractTriviaFormatter.cs (1)
428case AdjustNewLinesOption.ForceLines:
AdjustNewLinesOperation.cs (1)
16Contract.ThrowIfFalse(option != AdjustNewLinesOption.ForceLines || line > 0);
AdjustNewLinesOption.cs (1)
16/// <term><see cref="ForceLines"/></term>
FormattingOperations.cs (2)
16private static readonly AdjustNewLinesOperation s_forceOneLine = new(1, AdjustNewLinesOption.ForceLines); 106else if (option == AdjustNewLinesOption.ForceLines)
Microsoft.CodeAnalysis.CSharp.CodeStyle (6)
ElasticTriviaFormattingRule.cs (6)
139if (operation.Option == AdjustNewLinesOption.ForceLines) 159return CreateAdjustNewLinesOperation(line, AdjustNewLinesOption.ForceLines); 179return FormattingOperations.CreateAdjustNewLinesOperation(2, AdjustNewLinesOption.ForceLines); 208return CreateAdjustNewLinesOperation(1, AdjustNewLinesOption.ForceLines); 236return FormattingOperations.CreateAdjustNewLinesOperation(2 /* +1 for member itself and +1 for a blank line*/, AdjustNewLinesOption.ForceLines); 254operation = CreateAdjustNewLinesOperation(numberOfLines + addedLines, AdjustNewLinesOption.ForceLines);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
MultiLineConditionalExpressionFormattingRule.cs (1)
51return FormattingOperations.CreateAdjustNewLinesOperation(1, AdjustNewLinesOption.ForceLines);
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (11)
ElasticTriviaFormattingRule.vb (11)
136If operation IsNot Nothing AndAlso operation.Option = AdjustNewLinesOption.ForceLines Then 144[option]:=AdjustNewLinesOption.ForceLines) 152[option]:=AdjustNewLinesOption.ForceLines) 160[option]:=AdjustNewLinesOption.ForceLines) 167[option]:=AdjustNewLinesOption.ForceLines) 174[option]:=AdjustNewLinesOption.ForceLines) 180[option]:=AdjustNewLinesOption.ForceLines) 188Return FormattingOperations.CreateAdjustNewLinesOperation(1, AdjustNewLinesOption.ForceLines) 204Return FormattingOperations.CreateAdjustNewLinesOperation(2, AdjustNewLinesOption.ForceLines) 209Return FormattingOperations.CreateAdjustNewLinesOperation(2, AdjustNewLinesOption.ForceLines) 226Return CreateAdjustNewLinesOperation(lines.Value, AdjustNewLinesOption.ForceLines)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
MultiLineConditionalExpressionFormattingRule.vb (1)
45Return FormattingOperations.CreateAdjustNewLinesOperation(1, AdjustNewLinesOption.ForceLines)