1 write to Definition
Microsoft.CodeAnalysis.Workspaces (1)
Option2.cs (1)
44Definition = definition;
18 references to Definition
Microsoft.CodeAnalysis.Workspaces (15)
Option2.cs (13)
65if (!Definition.IsEditorConfigOption) 70Debug.Assert(LanguageName is null == (Definition.ConfigName.StartsWith("dotnet_", StringComparison.Ordinal) || 71Definition.ConfigName is "file_header_template" or "insert_final_newline")); 72Debug.Assert(LanguageName is LanguageNames.CSharp == Definition.ConfigName.StartsWith(OptionDefinition.CSharpConfigNamePrefix, StringComparison.Ordinal)); 73Debug.Assert(LanguageName is LanguageNames.VisualBasic == Definition.ConfigName.StartsWith(OptionDefinition.VisualBasicConfigNamePrefix, StringComparison.Ordinal)); 76public T DefaultValue => Definition.DefaultValue; 77OptionDefinition IOption2.Definition => Definition; 83string IOption.Name => Definition.ConfigName; 84object? IOption.DefaultValue => Definition.DefaultValue; 86Type IOption.Type => Definition.Type; 90public override string ToString() => Definition.ToString(); 92public override int GetHashCode() => Definition.GetHashCode(); 103return Definition == other?.Definition;
PublicOptionFactory.cs (2)
70option.Definition, 73option.Definition.ToPublicOptionDefinition(internalOption, toPublicValue, toInternalValue),
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Options\OptionKeyTests.cs (1)
85Assert.Equal("name", option1.Definition.ConfigName);
Microsoft.VisualStudio.LanguageServices (2)
ColorSchemes\ColorSchemeApplier.Settings.cs (1)
120: ColorSchemeOptionsStorage.ColorScheme.Definition.DefaultValue;
Options\PackageSettingsPersister.cs (1)
70value = SolutionCrawlerOptionsStorage.SolutionBackgroundAnalysisScopeOption.Definition.DefaultValue;