1 interface inheriting from IOption
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\IOption2.cs (1)
18
,
IOption
2 implementations of IOption
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Completion\CompletionServiceTests.cs (1)
87
private sealed class ThirdPartyOption :
IOption
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Options\TestOption.cs (1)
11
internal class TestOption :
IOption
39 references to IOption
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Configuration\DidChangeConfigurationNotificationHandlerTest.cs (1)
319
static bool TryGetValueNonDefaultValueBasedOnName(
IOption
option, out object? nonDefaultValue)
Microsoft.CodeAnalysis.Workspaces (20)
Options\Option.cs (2)
82
object?
IOption
.DefaultValue => this.DefaultValue;
84
bool
IOption
.IsPerLanguage => false;
Options\OptionKey.cs (4)
15
public
IOption
Option { get; }
20
public OptionKey(
IOption
option, string? language = null)
45
static bool OptionEqual(
IOption
thisOption,
IOption
otherOption)
Options\PerLanguageOption.cs (2)
76
object?
IOption
.DefaultValue => this.DefaultValue;
80
bool
IOption
.IsPerLanguage => true;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (6)
82
string
IOption
.Feature => "config";
83
string
IOption
.Name => Definition.ConfigName;
84
object?
IOption
.DefaultValue => Definition.DefaultValue;
85
bool
IOption
.IsPerLanguage => false;
86
Type
IOption
.Type => Definition.Type;
87
ImmutableArray<OptionStorageLocation>
IOption
.StorageLocations => [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (6)
70
string
IOption
.Feature => "config";
71
string
IOption
.Name => Definition.ConfigName;
72
object?
IOption
.DefaultValue => Definition.DefaultValue;
73
bool
IOption
.IsPerLanguage => true;
74
Type
IOption
.Type => Definition.Type;
75
ImmutableArray<OptionStorageLocation>
IOption
.StorageLocations => [];
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (11)
Options\OptionsTestHelpers.cs (11)
26
public static readonly ImmutableArray<(
IOption
, object)> PublicCustomOptionsWithNonDefaultValues = ImmutableArray.Create<(
IOption
, object)>(
29
public static readonly ImmutableArray<(
IOption
, object)> PublicAutoFormattingOptionsWithNonDefaultValues = ImmutableArray.Create<(
IOption
, object)>(
32
public static readonly ImmutableArray<(
IOption
, object)> PublicFormattingOptionsWithNonDefaultValues = ImmutableArray.Create<(
IOption
, object)>(
85
public static readonly ImmutableArray<(
IOption
, object)> PublicCodeStyleOptionsWithNonDefaultValues = ImmutableArray.Create<(
IOption
, object)>(
93
public static readonly IEnumerable<(
IOption
, object)> AllPublicOptionsWithNonDefaultValues =
99
public static OptionSet GetOptionSetWithChangedOptions(OptionSet options, IEnumerable<(
IOption
, object)> optionsWithNonDefaultValues)
113
public static IEnumerable<string?> GetApplicableLanguages(
IOption
option)
Microsoft.CodeAnalysis.Workspaces.UnitTests (7)
Options\OptionKeyTests.cs (4)
81
Assert.Equal("config", ((
IOption
)option1).Feature);
82
Assert.Equal("name", ((
IOption
)option1).Name);
87
Assert.Equal("config", ((
IOption
)option2).Feature);
88
Assert.Equal("name", ((
IOption
)option2).Name);
Simplifier\SimplifierTests.cs (1)
101
var publicOptions = new (
IOption
, object)[]
WorkspaceServiceTests\GlobalOptionServiceTests.cs (2)
60
var option = subclass ? (
IOption
)new TestOption<int>(defaultValue: 1) : new TestOption() { DefaultValue = 1 };
61
var perLanguageOption = subclass ? (
IOption
)new PerLanguageTestOption<int>(defaultValue: 1) : new TestOption() { IsPerLanguage = true, DefaultValue = 1 };