56 references to Always
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
CSharpCodeStyleOptions_Parsing.cs (2)
118
? new CodeStyleOption2<PreferBracesPreference>(PreferBracesPreference.
Always
, notificationOption)
138
PreferBracesPreference.
Always
=> $"true{notificationString}",
CSharpSimplifierOptions.cs (1)
19
new(PreferBracesPreference.
Always
, NotificationOption2.Silent);
PreferBracesPreference.cs (1)
47
/// <item><description>Braces may be omitted in the cases described for <see cref="
Always
"/>.</description></item>
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (52)
AddBracesTests.cs (52)
33
[InlineData((int)PreferBracesPreference.
Always
)]
55
[InlineData((int)PreferBracesPreference.
Always
)]
81
[InlineData((int)PreferBracesPreference.
Always
)]
103
[InlineData((int)PreferBracesPreference.
Always
)]
125
[InlineData((int)PreferBracesPreference.
Always
)]
147
[InlineData((int)PreferBracesPreference.
Always
)]
169
[InlineData((int)PreferBracesPreference.
Always
)]
192
[InlineData((int)PreferBracesPreference.
Always
)]
222
[InlineData((int)PreferBracesPreference.
Always
)]
259
[InlineData((int)PreferBracesPreference.
Always
)]
282
[InlineData((int)PreferBracesPreference.
Always
)]
305
[InlineData((int)PreferBracesPreference.
Always
)]
327
[InlineData((int)PreferBracesPreference.
Always
, true)]
362
[InlineData((int)PreferBracesPreference.
Always
, true)]
395
[InlineData((int)PreferBracesPreference.
Always
, true)]
415
[InlineData((int)PreferBracesPreference.
Always
, true)]
450
[InlineData((int)PreferBracesPreference.
Always
, true)]
485
[InlineData((int)PreferBracesPreference.
Always
, true)]
519
[InlineData((int)PreferBracesPreference.
Always
, true)]
554
[InlineData((int)PreferBracesPreference.
Always
, true)]
597
[InlineData((int)PreferBracesPreference.
Always
, true)]
644
[InlineData((int)PreferBracesPreference.
Always
, true)]
690
[InlineData((int)PreferBracesPreference.
Always
, true)]
744
[InlineData((int)PreferBracesPreference.
Always
, true)]
790
[InlineData((int)PreferBracesPreference.
Always
, true)]
823
[InlineData((int)PreferBracesPreference.
Always
, true)]
860
[InlineData((int)PreferBracesPreference.
Always
, true)]
895
[InlineData((int)PreferBracesPreference.
Always
, true)]
931
[InlineData((int)PreferBracesPreference.
Always
, true)]
964
[InlineData((int)PreferBracesPreference.
Always
, true)]
997
[InlineData((int)PreferBracesPreference.
Always
, true)]
1031
[InlineData((int)PreferBracesPreference.
Always
, true)]
1067
[InlineData((int)PreferBracesPreference.
Always
, true)]
1103
[InlineData((int)PreferBracesPreference.
Always
, true)]
1153
[InlineData((int)PreferBracesPreference.
Always
, true)]
1221
[InlineData((int)PreferBracesPreference.
Always
, true)]
1291
[InlineData((int)PreferBracesPreference.
Always
, true)]
1361
[InlineData((int)PreferBracesPreference.
Always
, true)]
1397
[InlineData((int)PreferBracesPreference.
Always
, true)]
1439
[InlineData((int)PreferBracesPreference.
Always
)]
1463
[InlineData((int)PreferBracesPreference.
Always
)]
1487
[InlineData((int)PreferBracesPreference.
Always
)]
1513
[InlineData((int)PreferBracesPreference.
Always
, true)]
1558
[InlineData((int)PreferBracesPreference.
Always
, true)]
1603
[InlineData((int)PreferBracesPreference.
Always
, true)]
1648
[InlineData((int)PreferBracesPreference.
Always
, true)]
1693
[InlineData((int)PreferBracesPreference.
Always
, true)]
1742
[InlineData((int)PreferBracesPreference.
Always
, true)]
1791
[InlineData((int)PreferBracesPreference.
Always
, true)]
1832
[InlineData((int)PreferBracesPreference.
Always
, true)]
1873
[InlineData((int)PreferBracesPreference.
Always
, true)]
1916
[InlineData((int)PreferBracesPreference.
Always
, true)]