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