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