24 references to Option
Microsoft.CodeAnalysis.Workspaces (11)
Options\Option.cs (1)
33
:
this
(feature, name, default!)
Rename\RenameOptions.cs (4)
15
public static Option<bool> RenameOverloads { get; } = new
Option
<bool>(nameof(RenameOptions), nameof(RenameOverloads), defaultValue: false);
17
public static Option<bool> RenameInStrings { get; } = new
Option
<bool>(nameof(RenameOptions), nameof(RenameInStrings), defaultValue: false);
19
public static Option<bool> RenameInComments { get; } = new
Option
<bool>(nameof(RenameOptions), nameof(RenameInComments), defaultValue: false);
21
public static Option<bool> PreviewChanges { get; } = new
Option
<bool>(nameof(RenameOptions), nameof(PreviewChanges), defaultValue: false);
Simplification\SimplificationOptions.cs (6)
22
public static Option<bool> PreferAliasToQualification { get; } = new
Option
<bool>("SimplificationOptions", "PreferAliasToQualification", defaultValue: true);
29
public static Option<bool> PreferOmittingModuleNamesInQualification { get; } = new
Option
<bool>("SimplificationOptions", "PreferOmittingModuleNamesInQualification", defaultValue: true);
35
public static Option<bool> PreferImplicitTypeInference { get; } = new
Option
<bool>("SimplificationOptions", "PreferImplicitTypeInference", defaultValue: true);
41
public static Option<bool> PreferImplicitTypeInLocalDeclaration { get; } = new
Option
<bool>("SimplificationOptions", "PreferImplicitTypeInLocalDeclaration", defaultValue: true);
47
public static Option<bool> AllowSimplificationToGenericType { get; } = new
Option
<bool>("SimplificationOptions", "AllowSimplificationToGenericType", defaultValue: false);
53
public static Option<bool> AllowSimplificationToBaseType { get; } = new
Option
<bool>("SimplificationOptions", "AllowSimplificationToBaseType", defaultValue: true);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Options\OptionsTestHelpers.cs (1)
23
public static readonly Option<bool> CustomPublicOption = new
Option
<bool>("My Feature", "My Option", defaultValue: true);
Microsoft.CodeAnalysis.Workspaces.UnitTests (12)
Options\OptionKeyTests.cs (6)
23
Assert.Throws<ArgumentNullException>(() => new
Option
<bool>("Test Feature", null!, false));
24
Assert.Throws<ArgumentNullException>(() => new
Option
<bool>(null!, "Test Name", false));
108
var option = new
Option
<bool>("FooFeature", "BarName", false);
155
var option1 = new
Option
<bool>("FooFeature", "BarName", defaultValue: false);
156
var option2 = new
Option
<bool>("FooFeature", "BarName", defaultValue: true);
157
var option3 = new
Option
<bool>("CSharpFormattingOptions", "SpacingAfterMethodDeclarationName", CSharpFormattingOptions.SpacingAfterMethodDeclarationName.DefaultValue);
WorkspaceServiceTests\GlobalOptionServiceTests.cs (6)
160
var option = new
Option
<bool>("Test Feature", "Test Name", false);
213
var option = new
Option
<bool>("Test Feature", "Test Name", false);
226
var optionFalse = new
Option
<bool>("Test Feature", "Test Name", false);
229
var optionTrue = new
Option
<bool>("Test Feature", "Test Name", true);
246
var option = new
Option
<bool>("Test Feature", "Test Name", defaultValue: true);
262
var option = new
Option
<bool>("Test Feature", "Test Name", defaultValue: true);