2 implementations of Definition
Microsoft.CodeAnalysis.CodeStyle (2)
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;
9 references to Definition
Microsoft.CodeAnalysis.CodeStyle (9)
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer.cs (1)
88Debug.Assert(option is { Definition.DefaultValue: ICodeStyleOption2 } == descriptor.CustomTags.Contains(WellKnownDiagnosticTags.CustomSeverityConfigurable));
src\Analyzers\Core\Analyzers\IDEDiagnosticIdToOptionMappingHelper.cs (1)
89Debug.Assert(options.All(option => option.Definition.IsEditorConfigOption));
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;