25 references to PreferThrowExpression
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (18)
EditorConfigSettings\Updater\SettingsUpdaterTests.cs (1)
96(CSharpCodeStyleOptions.PreferThrowExpression, CodeStyleOption2.TrueWithSuggestionEnforcement));
GenerateFromMembers\GenerateConstructorFromMembers\GenerateConstructorFromMembersTests.cs (3)
1307Option(CSharpCodeStyleOptions.PreferThrowExpression, CodeStyleOption2.FalseWithSilentEnforcement))); 1344Option(CSharpCodeStyleOptions.PreferThrowExpression, CodeStyleOption2.FalseWithSilentEnforcement))); 1387options: Option(CSharpCodeStyleOptions.PreferThrowExpression, CodeStyleOption2.FalseWithSilentEnforcement)));
InitializeParameter\AddParameterCheckTests.cs (14)
971{ CSharpCodeStyleOptions.PreferThrowExpression, false, NotificationOption2.Silent } 2391{ CSharpCodeStyleOptions.PreferThrowExpression, false }, 2427{ CSharpCodeStyleOptions.PreferThrowExpression, false }, 2465{ CSharpCodeStyleOptions.PreferThrowExpression, false }, 2500{ CSharpCodeStyleOptions.PreferThrowExpression, false }, 2535{ CSharpCodeStyleOptions.PreferThrowExpression, false }, 2573{ CSharpCodeStyleOptions.PreferThrowExpression, false }, 2611{ CSharpCodeStyleOptions.PreferThrowExpression, false }, 2651{ CSharpCodeStyleOptions.PreferThrowExpression, false }, 2693{ CSharpCodeStyleOptions.PreferThrowExpression, false }, 2732{ CSharpCodeStyleOptions.PreferThrowExpression, false }, 2771{ CSharpCodeStyleOptions.PreferThrowExpression, false }, 2813{ CSharpCodeStyleOptions.PreferThrowExpression, false }, 2852{ CSharpCodeStyleOptions.PreferThrowExpression, false },
Microsoft.CodeAnalysis.CSharp.Features (2)
CSharpAnalyzerOptionsProvider.cs (1)
51public CodeStyleOption2<bool> PreferThrowExpression => GetOption(CSharpCodeStyleOptions.PreferThrowExpression, FallbackSimplifierOptions.PreferThrowExpression);
CSharpUseThrowExpressionDiagnosticAnalyzer.cs (1)
20: base(CSharpCodeStyleOptions.PreferThrowExpression)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CSharpSimplifierOptions.cs (1)
45PreferThrowExpression = options.GetOption(CSharpCodeStyleOptions.PreferThrowExpression, fallbackOptions.PreferThrowExpression);
Microsoft.VisualStudio.LanguageServices.CSharp (4)
EditorConfigSettings\DataProvider\CodeStyle\CSharpCodeStyleSettingsProvider.cs (1)
79yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.PreferThrowExpression, CSharpVSResources.Prefer_throw_expression, options, updater);
Options\AutomationObject\AutomationObject.Style.cs (2)
50get { return GetXmlOption(CSharpCodeStyleOptions.PreferThrowExpression); } 51set { SetXmlOption(CSharpCodeStyleOptions.PreferThrowExpression, value); }
Options\Formatting\StyleViewModel.cs (1)
2278CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CSharpCodeStyleOptions.PreferThrowExpression, CSharpVSResources.Prefer_throw_expression, s_preferThrowExpression, s_preferThrowExpression, this, optionStore, nullCheckingGroupTitle));