18 references to OmitIfDefault
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (6)
AddAccessibilityModifiersTests.cs (5)
395{ CodeStyleOptions2.AccessibilityModifiersRequired, AccessibilityModifiersRequired.OmitIfDefault }, 419{ CodeStyleOptions2.AccessibilityModifiersRequired, AccessibilityModifiersRequired.OmitIfDefault }, 443{ CodeStyleOptions2.AccessibilityModifiersRequired, AccessibilityModifiersRequired.OmitIfDefault }, 461{ CodeStyleOptions2.AccessibilityModifiersRequired, AccessibilityModifiersRequired.OmitIfDefault }, 748{ CodeStyleOptions2.AccessibilityModifiersRequired,AccessibilityModifiersRequired.OmitIfDefault }
InitializeParameter\InitializeMemberFromParameterTests.cs (1)
1578private TestParameters OmitIfDefault_Warning => new TestParameters(options: Option(CodeStyleOptions2.AccessibilityModifiersRequired, AccessibilityModifiersRequired.OmitIfDefault, NotificationOption2.Warning));
Microsoft.CodeAnalysis.CSharp.Features (1)
CSharpAddAccessibilityModifiers.cs (1)
45var isOmit = option == AccessibilityModifiersRequired.OmitIfDefault;
Microsoft.CodeAnalysis.Features (3)
ImplementInterface\AbstractImplementInterfaceService.DisposePatternCodeAction.cs (1)
358var accessibilityLevel = requireAccessiblity is AccessibilityModifiersRequired.Never or AccessibilityModifiersRequired.OmitIfDefault
InitializeParameter\AbstractInitializeMemberFromParameterCodeRefactoringProviderMemberCreation.cs (2)
295if (accessibilityModifiersRequired is AccessibilityModifiersRequired.Never or AccessibilityModifiersRequired.OmitIfDefault) 344if (accessibilityModifiersRequired is AccessibilityModifiersRequired.Never or AccessibilityModifiersRequired.OmitIfDefault)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (3)
AddAccessibilityModifiersTests.vb (2)
423test.Options.Add(CodeStyleOptions2.AccessibilityModifiersRequired, AccessibilityModifiersRequired.OmitIfDefault) 517test.Options.Add(CodeStyleOptions2.AccessibilityModifiersRequired, AccessibilityModifiersRequired.OmitIfDefault)
InitializeParameter\InitializeMemberFromParameterTests.vb (1)
1000Return New TestParameters(options:=[Option](CodeStyleOptions2.AccessibilityModifiersRequired, AccessibilityModifiersRequired.OmitIfDefault, NotificationOption2.Warning))
Microsoft.CodeAnalysis.VisualBasic.Features (1)
VisualBasicAddAccessibilityModifiers.vb (1)
41Dim isOmit = [option] = AccessibilityModifiersRequired.OmitIfDefault
Microsoft.CodeAnalysis.Workspaces (1)
CodeStyleOptions2.cs (1)
195KeyValuePairUtil.Create("omit_if_default", CodeStyle.AccessibilityModifiersRequired.OmitIfDefault),
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
CodeStyle\EditorConfigCodeStyleParserTests.cs (2)
58[InlineData("omit_if_default:error", AccessibilityModifiersRequired.OmitIfDefault, ReportDiagnostic.Error)] 62[InlineData("omit_if_default : error", AccessibilityModifiersRequired.OmitIfDefault, ReportDiagnostic.Error)]
Microsoft.VisualStudio.LanguageServices (1)
EditorConfigSettings\DataProvider\CodeStyle\CommonCodeStyleSettingsProvider.cs (1)
89enumValues: new[] { AccessibilityModifiersRequired.Always, AccessibilityModifiersRequired.ForNonInterfaceMembers, AccessibilityModifiersRequired.Never, AccessibilityModifiersRequired.OmitIfDefault },