15 references to ICodeStyleOption2
Microsoft.CodeAnalysis.CodeStyle (15)
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer.cs (1)
88
Debug.Assert(option is { Definition.DefaultValue:
ICodeStyleOption2
} == descriptor.CustomTags.Contains(WellKnownDiagnosticTags.CustomSeverityConfigurable));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (13)
22
ICodeStyleOption2
WithValue(object value);
23
ICodeStyleOption2
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.
31
ICodeStyleOption2
FromXElement(XElement element);
75
internal sealed partial class CodeStyleOption2<T>(T value, NotificationOption2 notification) :
ICodeStyleOption2
, IEquatable<CodeStyleOption2<T>?>
93
object?
ICodeStyleOption2
.Value => this.Value;
94
ICodeStyleOption2
ICodeStyleOption2
.WithValue(object value) => WithValue((T)value);
95
ICodeStyleOption2
ICodeStyleOption2
.WithNotification(NotificationOption2 notification) => new CodeStyleOption2<T>(Value, notification);
165
ICodeStyleOption2
ICodeStyleOption2
.FromXElement(XElement element)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
103
typeof(
ICodeStyleOption2
).IsAssignableFrom(type) ||