65 references to PreserveLines
Microsoft.CodeAnalysis.CodeStyle (8)
AbstractFormatEngine.OperationApplier.cs (1)
147
if (operation.Option == AdjustNewLinesOption.
PreserveLines
)
AbstractTriviaFormatter.cs (1)
421
case AdjustNewLinesOption.
PreserveLines
:
AdjustNewLinesOperation.cs (1)
17
Contract.ThrowIfFalse(option != AdjustNewLinesOption.
PreserveLines
|| line >= 0);
AdjustNewLinesOption.cs (1)
12
/// <term><see cref="
PreserveLines
"/></term>
FormattingOperations.cs (4)
14
private static readonly AdjustNewLinesOperation s_preserveZeroLine = new(0, AdjustNewLinesOption.
PreserveLines
);
15
private static readonly AdjustNewLinesOperation s_preserveOneLine = new(1, AdjustNewLinesOption.
PreserveLines
);
95
if (option == AdjustNewLinesOption.
PreserveLines
)
102
if (option == AdjustNewLinesOption.
PreserveLines
)
Microsoft.CodeAnalysis.CSharp.CodeStyle (45)
CSharpSmartTokenFormatter.cs (1)
141
return FormattingOperations.CreateAdjustNewLinesOperation(line: 0, option: AdjustNewLinesOption.
PreserveLines
);
ElasticTriviaFormattingRule.cs (5)
111
return CreateAdjustNewLinesOperation(1, AdjustNewLinesOption.
PreserveLines
);
121
return CreateAdjustNewLinesOperation(1, AdjustNewLinesOption.
PreserveLines
);
156
return CreateAdjustNewLinesOperation(0, AdjustNewLinesOption.
PreserveLines
);
219
return CreateAdjustNewLinesOperation(1, AdjustNewLinesOption.
PreserveLines
);
231
return CreateAdjustNewLinesOperation(1, AdjustNewLinesOption.
PreserveLines
);
EndOfFileTokenFormattingRule.cs (1)
19
return CreateAdjustNewLinesOperation(0, AdjustNewLinesOption.
PreserveLines
);
NewLineUserSettingFormattingRule.cs (16)
230
return CreateAdjustNewLinesOperation(1, AdjustNewLinesOption.
PreserveLines
);
235
return CreateAdjustNewLinesOperation(0, AdjustNewLinesOption.
PreserveLines
);
244
return CreateAdjustNewLinesOperation(1, AdjustNewLinesOption.
PreserveLines
);
249
return CreateAdjustNewLinesOperation(0, AdjustNewLinesOption.
PreserveLines
);
259
return CreateAdjustNewLinesOperation(1, AdjustNewLinesOption.
PreserveLines
);
272
return CreateAdjustNewLinesOperation(1, AdjustNewLinesOption.
PreserveLines
);
285
return CreateAdjustNewLinesOperation(1, AdjustNewLinesOption.
PreserveLines
);
298
return CreateAdjustNewLinesOperation(1, AdjustNewLinesOption.
PreserveLines
);
311
return CreateAdjustNewLinesOperation(1, AdjustNewLinesOption.
PreserveLines
);
328
return CreateAdjustNewLinesOperation(1, AdjustNewLinesOption.
PreserveLines
);
357
return CreateAdjustNewLinesOperation(1, AdjustNewLinesOption.
PreserveLines
);
370
return CreateAdjustNewLinesOperation(1, AdjustNewLinesOption.
PreserveLines
);
396
return CreateAdjustNewLinesOperation(1, AdjustNewLinesOption.
PreserveLines
);
423
return CreateAdjustNewLinesOperation(1, AdjustNewLinesOption.
PreserveLines
);
436
return CreateAdjustNewLinesOperation(1, AdjustNewLinesOption.
PreserveLines
);
451
return CreateAdjustNewLinesOperation(1, AdjustNewLinesOption.
PreserveLines
);
QueryExpressionFormattingRule.cs (3)
138
return CreateAdjustNewLinesOperation(0, AdjustNewLinesOption.
PreserveLines
);
160
return CreateAdjustNewLinesOperation(1, AdjustNewLinesOption.
PreserveLines
);
164
return CreateAdjustNewLinesOperation(0, AdjustNewLinesOption.
PreserveLines
);
TokenBasedFormattingRule.cs (19)
58
return CreateAdjustNewLinesOperation(1, AdjustNewLinesOption.
PreserveLines
);
69
return CreateAdjustNewLinesOperation(1, AdjustNewLinesOption.
PreserveLines
);
75
return CreateAdjustNewLinesOperation(0, AdjustNewLinesOption.
PreserveLines
);
101
return CreateAdjustNewLinesOperation(1, AdjustNewLinesOption.
PreserveLines
);
113
return CreateAdjustNewLinesOperation(1, AdjustNewLinesOption.
PreserveLines
);
121
return CreateAdjustNewLinesOperation(1, AdjustNewLinesOption.
PreserveLines
);
133
return CreateAdjustNewLinesOperation(1, AdjustNewLinesOption.
PreserveLines
);
145
return CreateAdjustNewLinesOperation(0, AdjustNewLinesOption.
PreserveLines
);
151
return CreateAdjustNewLinesOperation(1, AdjustNewLinesOption.
PreserveLines
);
157
return CreateAdjustNewLinesOperation(0, AdjustNewLinesOption.
PreserveLines
);
164
return CreateAdjustNewLinesOperation(1, AdjustNewLinesOption.
PreserveLines
);
170
return CreateAdjustNewLinesOperation(1, AdjustNewLinesOption.
PreserveLines
);
175
return CreateAdjustNewLinesOperation(1, AdjustNewLinesOption.
PreserveLines
);
188
return CreateAdjustNewLinesOperation(1, AdjustNewLinesOption.
PreserveLines
);
207
return CreateAdjustNewLinesOperation(1, AdjustNewLinesOption.
PreserveLines
);
210
return CreateAdjustNewLinesOperation(0, AdjustNewLinesOption.
PreserveLines
);
221
return CreateAdjustNewLinesOperation(0, AdjustNewLinesOption.
PreserveLines
);
237
return CreateAdjustNewLinesOperation(2, AdjustNewLinesOption.
PreserveLines
);
243
return CreateAdjustNewLinesOperation(1, AdjustNewLinesOption.
PreserveLines
);
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (10)
DefaultOperationProvider.vb (7)
67
Return FormattingOperations.CreateAdjustNewLinesOperation(0, AdjustNewLinesOption.
PreserveLines
)
87
Return FormattingOperations.CreateAdjustNewLinesOperation(0, AdjustNewLinesOption.
PreserveLines
)
98
Return FormattingOperations.CreateAdjustNewLinesOperation(0, AdjustNewLinesOption.
PreserveLines
)
109
Return FormattingOperations.CreateAdjustNewLinesOperation(0, AdjustNewLinesOption.
PreserveLines
)
113
Return FormattingOperations.CreateAdjustNewLinesOperation(0, AdjustNewLinesOption.
PreserveLines
)
141
Return FormattingOperations.CreateAdjustNewLinesOperation(2, AdjustNewLinesOption.
PreserveLines
)
148
Return FormattingOperations.CreateAdjustNewLinesOperation(1, AdjustNewLinesOption.
PreserveLines
)
ElasticTriviaFormattingRule.vb (3)
216
Return FormattingOperations.CreateAdjustNewLinesOperation(1, AdjustNewLinesOption.
PreserveLines
)
219
Return CreateAdjustNewLinesOperation(Math.Max(If(operation Is Nothing, 1, operation.Line), 0), AdjustNewLinesOption.
PreserveLines
)
223
Return CreateAdjustNewLinesOperation(0, AdjustNewLinesOption.
PreserveLines
)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (2)
SpecialFormattingOperation.vb (2)
30
Return FormattingOperations.CreateAdjustNewLinesOperation(0, AdjustNewLinesOption.
PreserveLines
)
38
Return FormattingOperations.CreateAdjustNewLinesOperation(line:=0, option:=AdjustNewLinesOption.
PreserveLines
)