3 interfaces inheriting from IOption2
Microsoft.CodeAnalysis.Workspaces (3)
IPublicOption.cs (1)
13internal interface IPublicOption : IOption2
Option2.cs (1)
15internal interface ISingleValuedOption : IOption2
PerLanguageOption2.cs (1)
15internal interface IPerLanguageValuedOption : IOption2
220 references to IOption2
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
EditorConfigSettings\Updater\SettingsUpdaterTests.cs (1)
63private static async Task TestAsync(string initialEditorConfig, string updatedEditorConfig, params (IOption2, object)[] options)
Microsoft.CodeAnalysis.CSharp.Features (5)
CSharpTypeStyleDiagnosticAnalyzerBase.cs (1)
28ImmutableHashSet.Create<IOption2>(CSharpCodeStyleOptions.VarForBuiltInTypes, CSharpCodeStyleOptions.VarWhenTypeIsApparent, CSharpCodeStyleOptions.VarElsewhere),
MisplacedUsingDirectivesDiagnosticAnalyzer.cs (1)
41: base(ImmutableDictionary<DiagnosticDescriptor, IOption2>.Empty
UseExpressionBodyDiagnosticAnalyzer.cs (2)
31private static ImmutableDictionary<DiagnosticDescriptor, IOption2> GetSupportedDescriptorsWithOptions() 33var builder = ImmutableDictionary.CreateBuilder<DiagnosticDescriptor, IOption2>();
UseExpressionBodyForLambdaDiagnosticAnalyzer.cs (1)
24ImmutableDictionary<DiagnosticDescriptor, Options.IOption2>.Empty
Microsoft.CodeAnalysis.CSharp.Workspaces (8)
CSharpCodeStyleOptions.cs (3)
18private static readonly ImmutableArray<IOption2>.Builder s_allOptionsBuilder = ImmutableArray.CreateBuilder<IOption2>(); 255internal static readonly ImmutableArray<IOption2> AllOptions = s_allOptionsBuilder.ToImmutable();
CSharpFormattingOptions2.cs (3)
22private static readonly ImmutableArray<IOption2>.Builder s_allOptionsBuilder = ImmutableArray.CreateBuilder<IOption2>(); 68internal static ImmutableArray<IOption2> AllOptions { get; }
Formatting\CSharpFormattingOptions.cs (2)
42public NewLineForBracesInternalStorageMapping(IOption2 internalOption, NewLineBeforeOpenBracePlacement flag) 59public SpacePlacementInternalStorageMapping(IOption2 internalOption, SpacePlacementWithinParentheses flag)
Microsoft.CodeAnalysis.EditorFeatures (31)
BraceMatching\BraceHighlightingViewTaggerProvider.cs (2)
38protected sealed override ImmutableArray<IOption2> Options { get; } = ImmutableArray.Create<IOption2>(BraceMatchingOptionsStorage.BraceMatching);
Classification\Semantic\AbstractSemanticOrEmbeddedClassificationViewTaggerProvider.cs (2)
41protected sealed override ImmutableArray<IOption2> Options { get; } = ImmutableArray.Create<IOption2>(SemanticColorizerOptionsStorage.SemanticColorizer);
Diagnostics\AbstractPushOrPullDiagnosticsTaggerProvider.cs (3)
94protected abstract ImmutableArray<IOption2> Options { get; } 95protected virtual ImmutableArray<IOption2> FeatureOptions { get; } = ImmutableArray<IOption2>.Empty;
Diagnostics\AbstractPushOrPullDiagnosticsTaggerProvider.SingleDiagnosticKindPullTaggerProvider.cs (1)
45protected override ImmutableArray<IOption2> Options => _callback.Options;
Diagnostics\DiagnosticsClassificationTaggerProvider.cs (2)
40protected sealed override ImmutableArray<IOption2> Options { get; } = ImmutableArray.Create<IOption2>(DiagnosticsOptionsStorage.Classification);
Diagnostics\DiagnosticsSquiggleTaggerProvider.cs (2)
31protected override ImmutableArray<IOption2> Options { get; } = ImmutableArray.Create<IOption2>(DiagnosticsOptionsStorage.Squiggles);
Diagnostics\DiagnosticsSuggestionTaggerProvider.cs (2)
31protected sealed override ImmutableArray<IOption2> Options { get; } = ImmutableArray.Create<IOption2>(DiagnosticsOptionsStorage.Squiggles);
EditorConfigSettings\Data\TieredAnalyzerConfigOptions.cs (1)
27IOption2 option,
EditorConfigSettings\Updater\OptionUpdater.cs (2)
13internal class OptionUpdater : SettingsUpdaterBase<IOption2, object> 21IReadOnlyList<(IOption2 option, object value)> settingsToUpdate,
EditorConfigSettings\Updater\SettingsUpdateHelper.cs (2)
49IReadOnlyList<(IOption2 option, object value)> settingsToUpdate) 60static (string option, string value, Language language) GetOptionValueAndLanguage(IOption2 option, object value)
KeywordHighlighting\HighlighterViewTaggerProvider.cs (2)
47protected override ImmutableArray<IOption2> Options { get; } = ImmutableArray.Create<IOption2>(KeywordHighlightingOptionsStorage.KeywordHighlighting);
Logging\FunctionIdOptions.cs (1)
42public static IEnumerable<IOption2> GetOptions()
ReferenceHighlighting\ReferenceHighlightingViewTaggerProvider.cs (2)
50protected override ImmutableArray<IOption2> Options { get; } = ImmutableArray.Create<IOption2>(ReferenceHighlightingOptionsStorage.ReferenceHighlighting);
Shared\Tagging\EventSources\TaggerEventSources.cs (1)
50public static ITaggerEventSource OnGlobalOptionChanged(IGlobalOptionService globalOptions, IOption2 globalOption)
Shared\Tagging\EventSources\TaggerEventSources.OptionChangedEventSource.cs (2)
14private readonly IOption2 _globalOption; 17public GlobalOptionChangedEventSource(IGlobalOptionService globalOptions, IOption2 globalOption)
Tagging\AbstractAsynchronousTaggerProvider.cs (4)
74protected virtual ImmutableArray<IOption2> Options => ImmutableArray<IOption2>.Empty; 80protected virtual ImmutableArray<IOption2> FeatureOptions => ImmutableArray<IOption2>.Empty;
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (5)
Diagnostics\IDEDiagnosticIDConfigurationTests.cs (5)
28private static ImmutableArray<(string diagnosticId, ImmutableHashSet<IOption2> codeStyleOptions)> GetIDEDiagnosticIdsAndOptions( 31var diagnosticIdAndOptions = new List<(string diagnosticId, ImmutableHashSet<IOption2> options)>(); 53options = ImmutableHashSet<IOption2>.Empty; 678foreach (var option in options.OrderBy(o => o.Definition.ConfigName)) 718void ProcessDiagnosticIdAndOption(string diagnosticId, IOption2 option)
Microsoft.CodeAnalysis.EditorFeatures.Wpf (8)
InlineDiagnostics\InlineDiagnosticsTaggerProvider.cs (4)
38protected sealed override ImmutableArray<IOption2> Options { get; } = ImmutableArray.Create<IOption2>(InlineDiagnosticsOptionsStorage.EnableInlineDiagnostics); 39protected sealed override ImmutableArray<IOption2> FeatureOptions { get; } = ImmutableArray.Create<IOption2>(InlineDiagnosticsOptionsStorage.Location);
LineSeparators\LineSeparatorTaggerProvider.cs (2)
47protected sealed override ImmutableArray<IOption2> Options { get; } = ImmutableArray<IOption2>.Empty;
StringIndentation\StringIndentationTaggerProvider.cs (2)
43protected override ImmutableArray<IOption2> Options { get; } = ImmutableArray.Create<IOption2>(StringIndentationOptionsStorage.StringIdentation);
Microsoft.CodeAnalysis.Features (41)
AbstractBuiltInCodeStyleDiagnosticAnalyzer.cs (8)
20/// unique <see cref="IOption2"/> code style option. 38IOption2? option, 50/// two or more <see cref="IOption2 "/> code style options. 67ImmutableHashSet<IOption2> options, 82protected AbstractBuiltInCodeStyleDiagnosticAnalyzer(ImmutableDictionary<DiagnosticDescriptor, IOption2> supportedDiagnosticsWithOptions) 92protected AbstractBuiltInCodeStyleDiagnosticAnalyzer(ImmutableDictionary<DiagnosticDescriptor, ImmutableHashSet<IOption2>> supportedDiagnosticsWithOptions) 104private static void AddDiagnosticIdToOptionMapping(string diagnosticId, IOption2? option) 112private static void AddDiagnosticIdToOptionMapping(string diagnosticId, ImmutableHashSet<IOption2> options)
AbstractBuiltInUnnecessaryCodeStyleDiagnosticAnalyzer.cs (4)
41IOption2? option, 73ImmutableHashSet<IOption2> options, 103protected AbstractBuiltInUnnecessaryCodeStyleDiagnosticAnalyzer(ImmutableDictionary<DiagnosticDescriptor, IOption2> supportedDiagnosticsWithOptions, PerLanguageOption2<bool>? fadingOption) 112protected AbstractBuiltInUnnecessaryCodeStyleDiagnosticAnalyzer(ImmutableDictionary<DiagnosticDescriptor, ImmutableHashSet<IOption2>> supportedDiagnosticsWithOptions, PerLanguageOption2<bool>? fadingOption)
AbstractFileHeaderDiagnosticAnalyzer.cs (1)
27: base(ImmutableDictionary<DiagnosticDescriptor, IOption2>.Empty
AbstractQualifyMemberAccessDiagnosticAnalyzer.cs (1)
27options: ImmutableHashSet.Create<IOption2>(CodeStyleOptions2.QualifyFieldAccess, CodeStyleOptions2.QualifyPropertyAccess, CodeStyleOptions2.QualifyMethodAccess, CodeStyleOptions2.QualifyEventAccess),
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (1)
95: base(ImmutableDictionary<DiagnosticDescriptor, IOption2>.Empty
AbstractUseCollectionInitializerDiagnosticAnalyzer.cs (1)
53: base(ImmutableDictionary<DiagnosticDescriptor, IOption2>.Empty
AbstractUseInferredMemberNameDiagnosticAnalyzer.cs (1)
20options: ImmutableHashSet.Create<IOption2>(CodeStyleOptions2.PreferInferredAnonymousTypeMemberNames, CodeStyleOptions2.PreferInferredTupleNames),
AbstractUseObjectInitializerDiagnosticAnalyzer.cs (1)
50: base(ImmutableDictionary<DiagnosticDescriptor, IOption2>.Empty
CodeFixes\Configuration\ConfigurationUpdater.cs (3)
366foreach (var option in codeStyleOptions) 400internal static ImmutableArray<IOption2> GetCodeStyleOptionsForDiagnostic(Diagnostic diagnostic, Project project) 410return ImmutableArray<IOption2>.Empty;
CodeFixes\Configuration\ConfigureCodeStyle\ConfigureCodeStyleOptionCodeFixProvider.cs (2)
80foreach (var option in codeStyleOptions) 103TopLevelConfigureCodeStyleOptionCodeAction? GetCodeActionForCodeStyleOption(IOption2 option, Diagnostic diagnostic, bool hasMultipleOptions)
IDEDiagnosticIdToOptionMappingHelper.cs (10)
23private static readonly ConcurrentDictionary<string, ImmutableHashSet<IOption2>> s_diagnosticIdToOptionMap = new(); 24private static readonly ConcurrentDictionary<string, ConcurrentDictionary<string, ImmutableHashSet<IOption2>>> s_diagnosticIdToLanguageSpecificOptionsMap = new(); 27public static bool TryGetMappedOptions(string diagnosticId, string language, [NotNullWhen(true)] out ImmutableHashSet<IOption2>? options) 39public static void AddOptionMapping(string diagnosticId, ImmutableHashSet<IOption2> options) 45var multipleLanguagesOptionsBuilder = ImmutableHashSet.CreateBuilder<IOption2>(); 50foreach (var perLanguageValuedOption in group) 64foreach (var option in languageGroup) 71var map = s_diagnosticIdToLanguageSpecificOptionsMap.GetOrAdd(language, _ => new ConcurrentDictionary<string, ImmutableHashSet<IOption2>>()); 84private static void AddOptionMapping(ConcurrentDictionary<string, ImmutableHashSet<IOption2>> map, string diagnosticId, ImmutableHashSet<IOption2> options)
ParenthesesDiagnosticAnalyzersHelper.cs (2)
16internal static ImmutableHashSet<IOption2> Options = ImmutableHashSet.Create<IOption2>(CodeStyleOptions2.ArithmeticBinaryParentheses, CodeStyleOptions2.RelationalBinaryParentheses, CodeStyleOptions2.OtherBinaryParentheses, CodeStyleOptions2.OtherParentheses);
PreferFrameworkType\PreferFrameworkTypeDiagnosticAnalyzerBase.cs (1)
30options: ImmutableHashSet.Create<IOption2>(CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInDeclaration, CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess),
SimplifyThisOrMe\AbstractSimplifyThisOrMeDiagnosticAnalyzer.cs (1)
33ImmutableHashSet.Create<IOption2>(CodeStyleOptions2.QualifyFieldAccess, CodeStyleOptions2.QualifyPropertyAccess, CodeStyleOptions2.QualifyMethodAccess, CodeStyleOptions2.QualifyEventAccess),
SimplifyTypeNamesDiagnosticAnalyzerBase.cs (4)
65: base(ImmutableDictionary<DiagnosticDescriptor, ImmutableHashSet<IOption2>>.Empty 66.Add(s_descriptorSimplifyNames, ImmutableHashSet<IOption2>.Empty) 67.Add(s_descriptorSimplifyMemberAccess, ImmutableHashSet<IOption2>.Empty) 68.Add(s_descriptorPreferBuiltinOrFrameworkType, ImmutableHashSet.Create<IOption2>(CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInDeclaration, CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess)),
Microsoft.CodeAnalysis.Workspaces (63)
AnalyzerConfigOptionsExtensions.cs (3)
18public static T GetEditorConfigOption<T>(this AnalyzerConfigOptions analyzerConfigOptions, IOption2 option, T defaultValue) 21public static T GetEditorConfigOptionValue<T>(this AnalyzerConfigOptions analyzerConfigOptions, IOption2 option, T defaultValue) 24public static bool TryGetEditorConfigOption<T>(this AnalyzerConfigOptions analyzerConfigOptions, IOption2 option, out T value)
CodeStyleHelpers.cs (3)
117this ImmutableArray<IOption2>.Builder optionsBuilder, 130this ImmutableArray<IOption2>.Builder optionsBuilder, 142this ImmutableArray<IOption2>.Builder optionsBuilder,
CodeStyleOptions2.cs (3)
20private static readonly ImmutableArray<IOption2>.Builder s_allOptionsBuilder = ImmutableArray.CreateBuilder<IOption2>(); 336internal static readonly ImmutableArray<IOption2> AllOptions = s_allOptionsBuilder.ToImmutable();
FormattingOptions2.cs (2)
69internal static readonly ImmutableArray<IOption2> Options = ImmutableArray.Create<IOption2>(
GenerationOptions.cs (2)
27public static readonly ImmutableArray<IOption2> AllOptions = ImmutableArray.Create<IOption2>(
InternalOptionStorageMapping.cs (2)
16public IOption2 InternalOption { get; } 18public OptionStorageMapping(IOption2 internalOption)
IOption2.cs (2)
13/// This ensures that all the sub-types of <see cref="IOption2"/> in either layer see an identical 16internal interface IOption2 : IEquatable<IOption2?>
Option2.cs (4)
42internal Option2(OptionDefinition<T> definition, string? languageName, Func<IOption2, IPublicOption>? publicOptionFactory) 77OptionDefinition IOption2.Definition => Definition; 94public override bool Equals(object? obj) => Equals(obj as IOption2); 96public bool Equals(IOption2? other)
OptionKey2.cs (2)
18public IOption2 Option { get; } 21public OptionKey2(IOption2 option, string? language)
Options\DocumentOptionSet.cs (1)
78if (optionKey.Option is not IOption2 internallyDefinedOption)
Options\EditorConfig\EditorConfigFileGenerator.cs (3)
19ImmutableArray<(string feature, ImmutableArray<IOption2> options)> groupedOptions, 55private static void AppendOptionsToEditorConfig(IOptionsReader configOptions, string feature, ImmutableArray<IOption2> options, string language, StringBuilder editorconfig) 65foreach (var option in optionGrouping)
Options\GlobalOptionService.cs (1)
147Debug.Assert(optionKey.Option is IOption2 { Definition.StorageMapping: null });
Options\LegacyWorkspaceOptionService.cs (2)
36/// Stores options that are not defined by Roslyn and do not implement <see cref="IOption2"/>. 51Debug.Assert(key.Option is not IOption2);
Options\Option.cs (6)
86IPublicOption? IOption2.PublicOption => null; 88OptionDefinition IOption2.Definition => _optionDefinition; 90bool IEquatable<IOption2?>.Equals(IOption2? other) => Equals(other); 96public override bool Equals(object? obj) => Equals(obj as IOption2); 98private bool Equals(IOption2? other)
Options\OptionChangedEventArgs.cs (1)
20public IOption2 Option => OptionKey.Option;
Options\OptionKey.cs (2)
54if (thisOption is not IOption2 thisOption2 || 55otherOption is not IOption2 otherOption2)
Options\OptionSet.cs (2)
27if (optionKey.Option is IOption2 { Definition.StorageMapping: { } mapping }) 74if (optionAndLanguage.Option is IOption2 { Definition.StorageMapping: { } mapping })
Options\PerLanguageOption.cs (6)
74OptionDefinition IOption2.Definition => _optionDefinition; 78IPublicOption? IOption2.PublicOption => null; 82bool IEquatable<IOption2?>.Equals(IOption2? other) => Equals(other); 88public override bool Equals(object? obj) => Equals(obj as IOption2); 90private bool Equals(IOption2? other)
Options\SolutionOptionSet.cs (4)
55value = (optionKey.Option is IOption2 internallyDefinedOption) 82var internallyDefined = _changedOptionKeys.Where(key => key.Option is IOption2).SelectAsArray(key => KeyValuePairUtil.Create(new OptionKey2((IOption2)key.Option, key.Language), _values[key])); 83var externallyDefined = _changedOptionKeys.Where(key => key.Option is not IOption2).SelectAsArray(key => KeyValuePairUtil.Create(key, _values[key]));
PerLanguageOption2.cs (4)
33internal PerLanguageOption2(OptionDefinition<T> optionDefinition, Func<IOption2, IPublicOption>? publicOptionFactory) 64OptionDefinition IOption2.Definition => Definition; 81public override bool Equals(object? obj) => Equals(obj as IOption2); 83public bool Equals(IOption2? other)
PublicOptionFactory.cs (5)
45public StorageMapping(IOption2 internalOption, Func<object?, object?> toPublicValue, Func<object?, object?> toInternalValue) 59private static OptionDefinition<TPublicValue> ToPublicOptionDefinition<T, TPublicValue>(this OptionDefinition<T> definition, IOption2 internalOption, Func<T, TPublicValue> toPublicValue, Func<TPublicValue, T> toInternalValue) 127public static string PublicOptionDefinitionToString(this IOption2 option) 130public static bool PublicOptionDefinitionEquals(this IOption2 x, IOption2 y)
VisualBasicCodeStyleOptions.cs (3)
16private static readonly ImmutableArray<IOption2>.Builder s_allOptionsBuilder = ImmutableArray.CreateBuilder<IOption2>(); 54public static ImmutableArray<IOption2> AllOptions => s_allOptionsBuilder.ToImmutable();
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (7)
Options\OptionsTestInfo.cs (6)
14internal readonly record struct OptionsTestInfo(IOption2 Option, ImmutableList<(string namespaceName, string qualifiedName, bool isPublic, IOption2 option)> Accessors) 51if (typeof(IOption2).IsAssignableFrom(field.FieldType)) 55var option = (IOption2)field.GetValue(null)!; 72optionInfo = new OptionsTestInfo(option, ImmutableList.Create<(string, string, bool, IOption2)>((accessorNamespace!, accessor, isPublic, option)));
OptionsCollection.cs (1)
39Debug.Assert(optionKey.Option is IOption2 { Definition.StorageMapping: null });
Microsoft.CodeAnalysis.Workspaces.UnitTests (9)
Options\OptionSerializerTests.cs (8)
27var options = new IOption2[] 40foreach (var option in options) 71var options = new IOption2[] 86foreach (var option in options) 101var options = new IOption2[] 106foreach (var option in options) 129private static void VerifyEnumValues(IOption2 option, Type enumType) 143private static void VerifyEnumInvalidParse(IOption2 option, Type enumType)
WorkspaceServiceTests\GlobalOptionServiceTests.cs (1)
314private static void TestInternalOption(Workspace workspace, IOption2 option, string? language, CodeStyleOption2<bool> newValue)
Microsoft.VisualStudio.IntegrationTest.Utilities (2)
InProcess\VisualStudioWorkspace_InProc.cs (1)
131void ResetOption(IOption2 option)
WellKnownGlobalOptions.cs (1)
27public static IOption2 GetOption(this WellKnownGlobalOption option)
Microsoft.VisualStudio.LanguageServices (2)
EditorConfigSettings\DataProvider\CodeStyle\CommonCodeStyleSettingsProvider.cs (1)
17internal sealed class CommonCodeStyleSettingsProvider : SettingsProviderBase<CodeStyleSetting, OptionUpdater, IOption2, object>
EditorConfigSettings\DataProvider\Whitespace\CommonWhitespaceSettingsProvider.cs (1)
16internal sealed class CommonWhitespaceSettingsProvider : SettingsProviderBase<Setting, OptionUpdater, IOption2, object>
Microsoft.VisualStudio.LanguageServices.CSharp (5)
EditorConfigSettings\DataProvider\CodeStyle\CSharpCodeStyleSettingsProvider.cs (1)
19internal class CSharpCodeStyleSettingsProvider : SettingsProviderBase<CodeStyleSetting, OptionUpdater, IOption2, object>
EditorConfigSettings\DataProvider\Whitespace\CSharpWhitespaceSettingsProvider.cs (1)
21internal sealed class CSharpWhitespaceSettingsProvider : SettingsProviderBase<Setting, OptionUpdater, IOption2, object>
Options\Formatting\CodeStylePage.cs (3)
33private static ImmutableArray<(string feature, ImmutableArray<IOption2> options)> GetEditorConfigOptions() 35var builder = ArrayBuilder<(string, ImmutableArray<IOption2>)>.GetInstance(); 44internal static ImmutableArray<(string feature, ImmutableArray<IOption2> options)> GetEditorConfigOptions()
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
EditorConfigSettings\DataProvider\DataProviderTests.cs (1)
184var expectedOptions = new IOption2[]
Microsoft.VisualStudio.LanguageServices.Implementation (17)
Options\AbstractCheckBoxViewModel.cs (3)
19public IOption2 Option { get; } 24public AbstractCheckBoxViewModel(IOption2 option, string description, string preview, AbstractOptionPreviewViewModel info) 29public AbstractCheckBoxViewModel(IOption2 option, string description, string truePreview, string falsePreview, AbstractOptionPreviewViewModel info)
Options\AbstractOptionPreviewViewModel.cs (1)
71public void SetOptionAndUpdatePreview<T>(T value, IOption2 option, string preview)
Options\CheckBoxEnumFlagsViewModel.cs (2)
25IOption2 option, 38IOption2 option,
Options\CheckBoxViewModel.cs (2)
13public CheckBoxOptionViewModel(IOption2 option, string description, string preview, AbstractOptionPreviewViewModel info, OptionStore optionStore) 18public CheckBoxOptionViewModel(IOption2 option, string description, string truePreview, string falsePreview, AbstractOptionPreviewViewModel info, OptionStore optionStore)
Options\GridOptionPreviewControl.xaml.cs (3)
33private readonly ImmutableArray<(string feature, ImmutableArray<IOption2> options)> _groupedEditorConfigOptions; 49ImmutableArray<(string feature, ImmutableArray<IOption2> options)> groupedEditorConfigOptions, 61internal static IEnumerable<(string feature, ImmutableArray<IOption2> options)> GetLanguageAgnosticEditorConfigOptions()
Options\OptionStore.cs (2)
68public T GetOption<T>(IOption2 option, string? language) 97public void SetOption(IOption2 option, string? language, object? value)
Options\Style\AbstractCodeStyleOptionViewModel.cs (2)
31public IOption2 Option { get; } 50IOption2 option,
Options\Style\BooleanCodeStyleOptionViewModel.cs (1)
27IOption2 option,
Options\Style\EnumCodeStyleOptionViewModel.cs (1)
39IOption2 option,
Microsoft.VisualStudio.LanguageServices.New.IntegrationTests (1)
Options\GlobalOptionsTest.cs (1)
49var option = optionInfo.Option;
Microsoft.VisualStudio.LanguageServices.VisualBasic (4)
Options\Formatting\CodeStylePage.vb (4)
26Private Shared Function GetEditorConfigOptions() As ImmutableArray(Of (String, ImmutableArray(Of IOption2))) 27Dim builder = ArrayBuilder(Of (String, ImmutableArray(Of IOption2))).GetInstance() 29builder.Add((BasicVSResources.VB_Coding_Conventions, VisualBasicCodeStyleOptions.AllOptions.As(Of IOption2))) 34Friend Shared Function GetEditorConfigOptions() As ImmutableArray(Of (String, ImmutableArray(Of IOption2)))
Roslyn.VisualStudio.DiagnosticsWindow (9)
OptionPages\ForceLowMemoryModePage.cs (1)
30: base(Array.Empty<IOption2>(), optionStore)
OptionPages\InternalOptionsControl.cs (8)
20private readonly IEnumerable<IOption2> _options; 22public InternalOptionsControl(IEnumerable<IOption2> options, OptionStore optionStore) 112foreach (var option in _options) 126protected void AddOption(Panel panel, IOption2 option, string additional = null) 135protected void AddPerLanguageOption(Panel panel, IOption2 option, string languageName, string additional = null) 144private UIElement CreateControl(IOption2 option, string languageName = null, string additional = null) 195private void BindToCheckBox(CheckBox checkBox, IOption2 option, string languageName = null) 206private void BindToTextBox(TextBox textBox, IOption2 option, string languageName = null)
Roslyn.VisualStudio.Next.UnitTests (1)
Options\VisualStudioOptionStorageTests.cs (1)
159var option = info.Option;