25 references to UnusedParametersPreference
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (7)
RemoveUnusedParametersTests.cs (5)
36new CodeStyleOption2<UnusedParametersPreference>(UnusedParametersPreference.NonPublicMethods, NotificationOption2.Suggestion)); 1471new CodeStyleOption2<UnusedParametersPreference>(default, NotificationOption2.Suggestion)); 1502new CodeStyleOption2<UnusedParametersPreference>((UnusedParametersPreference)2, NotificationOption2.Suggestion));
RemoveUnusedValueAssignmentTests.cs (2)
212{ CodeStyleOptions2.UnusedParameters, UnusedParametersPreference.NonPublicMethods, NotificationOption2.None }, 246{ CodeStyleOptions2.UnusedParameters, UnusedParametersPreference.NonPublicMethods, NotificationOption2.Silent },
Microsoft.CodeAnalysis.Features (5)
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (4)
241private readonly UnusedParametersPreference _unusedParametersPreference; 249UnusedParametersPreference unusedParametersPreference, 274UnusedParametersPreference unusedParametersPreference, 282if (unusedParametersPreference == UnusedParametersPreference.NonPublicMethods)
AnalyzerOptionsProvider.cs (1)
86public CodeStyleOption2<UnusedParametersPreference> UnusedParameters => GetOption(CodeStyleOptions2.UnusedParameters, FallbackCodeStyleOptions.UnusedParameters);
Microsoft.CodeAnalysis.Workspaces (8)
CodeStyleOptions2.cs (5)
161private static readonly BidirectionalMap<string, UnusedParametersPreference> s_unusedParametersPreferenceMap = 164KeyValuePairUtil.Create("non_public", UnusedParametersPreference.NonPublicMethods), 165KeyValuePairUtil.Create("all", UnusedParametersPreference.AllMethods), 168internal static readonly PerLanguageOption2<CodeStyleOption2<UnusedParametersPreference>> UnusedParameters = CreatePerLanguageOption( 177return new CodeStyleOption2<UnusedParametersPreference>(s_unusedParametersPreferenceMap.GetValueOrDefault(value), notification);
IdeCodeStyleOptions.cs (3)
13private static readonly CodeStyleOption2<UnusedParametersPreference> s_preferAllMethodsUnusedParametersPreference = 14new(UnusedParametersPreference.AllMethods, NotificationOption2.Suggestion); 48[DataMember] public CodeStyleOption2<UnusedParametersPreference> UnusedParameters { get; init; } = s_preferAllMethodsUnusedParametersPreference;
Microsoft.VisualStudio.LanguageServices (2)
EditorConfigSettings\DataProvider\CodeStyle\CommonCodeStyleSettingsProvider.cs (2)
127var enumValues = new[] { UnusedParametersPreference.NonPublicMethods, UnusedParametersPreference.AllMethods };
Microsoft.VisualStudio.LanguageServices.Implementation (3)
Options\AbstractOptionPreviewViewModel.cs (3)
242UnusedParametersPreference.NonPublicMethods, 243UnusedParametersPreference.AllMethods 246CodeStyleItems.Add(new EnumCodeStyleOptionViewModel<UnusedParametersPreference>(