16 references to AccessibilityModifiersRequired
Microsoft.CodeAnalysis.CodeStyle (16)
src\Analyzers\Core\Analyzers\AddAccessibilityModifiers\AbstractAddAccessibilityModifiers.cs (2)
16
AccessibilityModifiersRequired
option,
29
AccessibilityModifiersRequired
option,
src\Analyzers\Core\Analyzers\AddAccessibilityModifiers\AbstractAddAccessibilityModifiersDiagnosticAnalyzer.cs (2)
37
if (option.Value ==
AccessibilityModifiersRequired
.Never
46
protected abstract void ProcessCompilationUnit(SyntaxTreeAnalysisContext context, CodeStyleOption2<
AccessibilityModifiersRequired
> option, TCompilationUnitSyntax compilationUnitSyntax);
src\Analyzers\Core\Analyzers\AddAccessibilityModifiers\IAddAccessibilityModifiersService.cs (1)
20
AccessibilityModifiersRequired
option,
src\Analyzers\Core\Analyzers\AnalyzerOptionsProvider.cs (1)
60
public CodeStyleOption2<
AccessibilityModifiersRequired
> RequireAccessibilityModifiers => GetOption(CodeStyleOptions2.AccessibilityModifiersRequired);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOptions2.cs (8)
198
private static readonly BidirectionalMap<string,
AccessibilityModifiersRequired
> s_accessibilityModifiersRequiredMap =
201
KeyValuePairUtil.Create("never", CodeStyle.
AccessibilityModifiersRequired
.Never),
202
KeyValuePairUtil.Create("always", CodeStyle.
AccessibilityModifiersRequired
.Always),
203
KeyValuePairUtil.Create("for_non_interface_members", CodeStyle.
AccessibilityModifiersRequired
.ForNonInterfaceMembers),
204
KeyValuePairUtil.Create("omit_if_default", CodeStyle.
AccessibilityModifiersRequired
.OmitIfDefault),
207
internal static readonly PerLanguageOption2<CodeStyleOption2<
AccessibilityModifiersRequired
>> AccessibilityModifiersRequired = CreatePerLanguageOption(
209
defaultValue: new CodeStyleOption2<
AccessibilityModifiersRequired
>(SyntaxFormattingOptions.CommonDefaults.AccessibilityModifiersRequired, NotificationOption2.Silent),
216
return new CodeStyleOption2<
AccessibilityModifiersRequired
>(s_accessibilityModifiersRequiredMap.GetValueOrDefault(value), notificationOpt);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\SyntaxFormattingOptions.cs (2)
21
[DataMember] public
AccessibilityModifiersRequired
AccessibilityModifiersRequired { get; init; } =
AccessibilityModifiersRequired
.ForNonInterfaceMembers;