10 references to AccessibilityModifiersRequired
Microsoft.CodeAnalysis.Workspaces (10)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOptions2.cs (8)
197
private static readonly BidirectionalMap<string,
AccessibilityModifiersRequired
> s_accessibilityModifiersRequiredMap =
200
KeyValuePairUtil.Create("never", CodeStyle.
AccessibilityModifiersRequired
.Never),
201
KeyValuePairUtil.Create("always", CodeStyle.
AccessibilityModifiersRequired
.Always),
202
KeyValuePairUtil.Create("for_non_interface_members", CodeStyle.
AccessibilityModifiersRequired
.ForNonInterfaceMembers),
203
KeyValuePairUtil.Create("omit_if_default", CodeStyle.
AccessibilityModifiersRequired
.OmitIfDefault),
206
internal static readonly PerLanguageOption2<CodeStyleOption2<
AccessibilityModifiersRequired
>> AccessibilityModifiersRequired = CreatePerLanguageOption(
208
defaultValue: new CodeStyleOption2<
AccessibilityModifiersRequired
>(SyntaxFormattingOptions.CommonDefaults.AccessibilityModifiersRequired, NotificationOption2.Silent),
215
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;