14 references to PerLanguageOption
Microsoft.CodeAnalysis.Workspaces (7)
Simplification\SimplificationOptions.cs (7)
59public static PerLanguageOption<bool> QualifyMemberAccessWithThisOrMe { get; } = new PerLanguageOption<bool>("SimplificationOptions", "QualifyMemberAccessWithThisOrMe", defaultValue: false); 65public static PerLanguageOption<bool> QualifyFieldAccess { get; } = new PerLanguageOption<bool>("SimplificationOptions", "QualifyFieldAccess", defaultValue: false); 71public static PerLanguageOption<bool> QualifyPropertyAccess { get; } = new("SimplificationOptions", "QualifyPropertyAccess", defaultValue: false); 77public static PerLanguageOption<bool> QualifyMethodAccess { get; } = new("SimplificationOptions", "QualifyMethodAccess", defaultValue: false); 83public static PerLanguageOption<bool> QualifyEventAccess { get; } = new("SimplificationOptions", "QualifyEventAccess", defaultValue: false); 89public static PerLanguageOption<bool> PreferIntrinsicPredefinedTypeKeywordInDeclaration { get; } = new("SimplificationOptions", "PreferIntrinsicPredefinedTypeKeywordInDeclaration", defaultValue: true); 95public static PerLanguageOption<bool> PreferIntrinsicPredefinedTypeKeywordInMemberAccess { get; } = new("SimplificationOptions", "PreferIntrinsicPredefinedTypeKeywordInMemberAccess", defaultValue: true);
Microsoft.CodeAnalysis.Workspaces.UnitTests (7)
Options\OptionKeyTests.cs (6)
32Assert.Throws<ArgumentNullException>(() => new PerLanguageOption<bool>("Test Feature", null!, false)); 33Assert.Throws<ArgumentNullException>(() => new PerLanguageOption<bool>(null!, "Test Name", false)); 119var option = new PerLanguageOption<bool>("FooFeature", "BarName", false); 142var option1 = new PerLanguageOption<bool>("FooFeature", "BarName", defaultValue: false); 143var option2 = new PerLanguageOption<bool>("FooFeature", "BarName", defaultValue: true); 144var option3 = new PerLanguageOption<bool>("FormattingOptions", "UseTabs", FormattingOptions.UseTabs.DefaultValue);
WorkspaceServiceTests\GlobalOptionServiceTests.cs (1)
150var optionvalid = new PerLanguageOption<bool>("Test Feature", "Test Name", false);