15 references to ICodeStyleOption2
Microsoft.CodeAnalysis.CodeStyle (15)
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer.cs (1)
88Debug.Assert(option is { Definition.DefaultValue: ICodeStyleOption2 } == descriptor.CustomTags.Contains(WellKnownDiagnosticTags.CustomSeverityConfigurable));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (13)
22ICodeStyleOption2 WithValue(object value); 23ICodeStyleOption2 WithNotification(NotificationOption2 notification); 26/// Creates a new <see cref="ICodeStyleOption2"/> from a specified <paramref name="element"/>. 29/// The type of the serialized data does not match the type of <see cref="ICodeStyleOption2.Value"/> or the format of the serialized data is invalid. 31ICodeStyleOption2 FromXElement(XElement element); 75internal sealed partial class CodeStyleOption2<T>(T value, NotificationOption2 notification) : ICodeStyleOption2, IEquatable<CodeStyleOption2<T>?> 93object? ICodeStyleOption2.Value => this.Value; 94ICodeStyleOption2 ICodeStyleOption2.WithValue(object value) => WithValue((T)value); 95ICodeStyleOption2 ICodeStyleOption2.WithNotification(NotificationOption2 notification) => new CodeStyleOption2<T>(Value, notification); 165ICodeStyleOption2 ICodeStyleOption2.FromXElement(XElement element)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
103typeof(ICodeStyleOption2).IsAssignableFrom(type) ||