64 references to Always
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (56)
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)]
InitializeParameter\AddParameterCheckTests.cs (4)
2466
{ CSharpCodeStyleOptions.PreferBraces, PreferBracesPreference.
Always
},
2574
{ CSharpCodeStyleOptions.PreferBraces, PreferBracesPreference.
Always
},
2694
{ CSharpCodeStyleOptions.PreferBraces, PreferBracesPreference.
Always
},
2814
{ CSharpCodeStyleOptions.PreferBraces, PreferBracesPreference.
Always
},
Microsoft.CodeAnalysis.CSharp.Features (1)
InitializeParameter\CSharpAddParameterCheckCodeRefactoringProvider.cs (1)
67
var withBlock = options.PreferBraces.Value == CodeAnalysis.CodeStyle.PreferBracesPreference.
Always
;
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
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>
Simplification\Reducers\CSharpMiscellaneousReducer.cs (1)
133
case PreferBracesPreference.
Always
:
Microsoft.VisualStudio.LanguageServices.CSharp (2)
EditorConfigSettings\DataProvider\CodeStyle\CSharpCodeStyleSettingsProvider.cs (1)
95
enumValues: new[] { PreferBracesPreference.
Always
, PreferBracesPreference.None, PreferBracesPreference.WhenMultiline },
Options\Formatting\StyleViewModel.cs (1)
2345
var enumValues = new[] { PreferBracesPreference.
Always
, PreferBracesPreference.None, PreferBracesPreference.WhenMultiline };