4 implementations of Definition
Microsoft.CodeAnalysis.Workspaces (4)
Options\Option.cs (1)
88OptionDefinition IOption2.Definition => _optionDefinition;
Options\PerLanguageOption.cs (1)
74OptionDefinition IOption2.Definition => _optionDefinition;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
77OptionDefinition IOption2.Definition => Definition;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
64OptionDefinition IOption2.Definition => Definition;
16 references to Definition
Microsoft.CodeAnalysis.Workspaces (16)
Options\DocumentOptionSet.cs (2)
80if (!_configOptions.TryGetValue(internallyDefinedOption.Definition.ConfigName, out var stringValue)) 87return internallyDefinedOption.Definition.Serializer.TryParse(stringValue, out value);
Options\GlobalOptionService.cs (1)
163Debug.Assert(optionKey.Option is IOption2 { Definition.StorageMapping: null });
Options\OptionSet.cs (2)
26if (optionKey.Option is IOption2 { Definition.StorageMapping: { } mapping }) 73if (optionAndLanguage.Option is IOption2 { Definition.StorageMapping: { } mapping })
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalyzerConfigOptionsExtensions.cs (5)
23Contract.ThrowIfFalse(option.Definition.IsEditorConfigOption); 25if (option.Definition.Type == typeof(NamingStylePreferences)) 36if (analyzerConfigOptions.TryGetValue(option.Definition.ConfigName, out var stringValue)) 41return ((OptionDefinition<T>)option.Definition).Serializer.TryParseValue(stringValue, out value!); 44if (option.Definition.Serializer.TryParse(stringValue, out var objectValue))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
103return Definition == other?.Definition;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
90return Definition == other?.Definition;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PublicOptionFactory.cs (4)
122var equals = x.Definition.ConfigName == y.Definition.ConfigName && x.Definition.Group == y.Definition.Group;