1 write to Definition
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
44Definition = definition;
15 references to Definition
Microsoft.CodeAnalysis.Workspaces (15)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (13)
65if (!Definition.IsEditorConfigOption) 70Debug.Assert(LanguageName is null == (Definition.ConfigName.StartsWith(OptionDefinition.LanguageAgnosticConfigNamePrefix, 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;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PublicOptionFactory.cs (2)
60option.Definition, 63option.Definition.ToPublicOptionDefinition(internalOption, toPublicValue, toInternalValue),