21 references to PreferBraces
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
CSharpAddBracesDiagnosticAnalyzer.cs (1)
26
CSharpCodeStyleOptions.
PreferBraces
,
CSharpAnalyzerOptionsProvider.cs (1)
52
public CodeStyleOption2<PreferBracesPreference> PreferBraces => GetOption(CSharpCodeStyleOptions.
PreferBraces
, FallbackSimplifierOptions.PreferBraces);
CSharpSimplifierOptions.cs (1)
44
PreferBraces = options.GetOption(CSharpCodeStyleOptions.
PreferBraces
, fallbackOptions.PreferBraces);
PreferBracesPreference.cs (1)
11
/// Defines the known values for <see cref="CSharpCodeStyleOptions.
PreferBraces
"/>.
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (17)
AddBracesTests.cs (17)
49
new TestParameters(options: Option(CSharpCodeStyleOptions.
PreferBraces
, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent)));
75
new TestParameters(options: Option(CSharpCodeStyleOptions.
PreferBraces
, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent)));
97
new TestParameters(options: Option(CSharpCodeStyleOptions.
PreferBraces
, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent)));
119
new TestParameters(options: Option(CSharpCodeStyleOptions.
PreferBraces
, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent)));
141
new TestParameters(options: Option(CSharpCodeStyleOptions.
PreferBraces
, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent)));
163
new TestParameters(options: Option(CSharpCodeStyleOptions.
PreferBraces
, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent)));
186
new TestParameters(options: Option(CSharpCodeStyleOptions.
PreferBraces
, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent)));
216
new TestParameters(options: Option(CSharpCodeStyleOptions.
PreferBraces
, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent)));
253
new TestParameters(options: Option(CSharpCodeStyleOptions.
PreferBraces
, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent)));
276
new TestParameters(options: Option(CSharpCodeStyleOptions.
PreferBraces
, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent)));
299
new TestParameters(options: Option(CSharpCodeStyleOptions.
PreferBraces
, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent)));
321
new TestParameters(options: Option(CSharpCodeStyleOptions.
PreferBraces
, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent)));
1457
new TestParameters(options: Option(CSharpCodeStyleOptions.
PreferBraces
, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent)));
1481
new TestParameters(options: Option(CSharpCodeStyleOptions.
PreferBraces
, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent)));
1507
new TestParameters(options: Option(CSharpCodeStyleOptions.
PreferBraces
, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent)));
1960
await TestInRegularAndScriptAsync(initialMarkup, expectedMarkup, options: Option(CSharpCodeStyleOptions.
PreferBraces
, bracesPreference, NotificationOption2.Silent));
1964
await TestMissingInRegularAndScriptAsync(initialMarkup, new TestParameters(options: Option(CSharpCodeStyleOptions.
PreferBraces
, bracesPreference, NotificationOption2.Silent)));