1 implementation of ICodeStyleOption2
Microsoft.CodeAnalysis.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
67
internal sealed partial class CodeStyleOption2<T>(T value, NotificationOption2 notification) :
ICodeStyleOption2
, IEquatable<CodeStyleOption2<T>?>
16 references to ICodeStyleOption2
Microsoft.CodeAnalysis.Features (6)
CodeFixes\Configuration\ConfigurationUpdater.cs (1)
388
where option.DefaultValue is
ICodeStyleOption2
CodeFixes\Configuration\ConfigureCodeStyle\ConfigureCodeStyleOptionCodeFixProvider.cs (4)
110
var
defaultValue = (
ICodeStyleOption2
?)option.DefaultValue;
141
void AddCodeActionWithOptionValue(
ICodeStyleOption2
codeStyleOption, object newValue)
144
var
configuredCodeStyleOption = codeStyleOption.WithValue(newValue);
src\roslyn\src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer.cs (1)
87
Debug.Assert(option is { Definition.DefaultValue:
ICodeStyleOption2
} == descriptor.CustomTags.Contains(WellKnownDiagnosticTags.CustomSeverityConfigurable));
Microsoft.CodeAnalysis.Workspaces (10)
CodeStyle\CodeStyleOption.cs (1)
14
/// Internally the value is represented by <see cref="
ICodeStyleOption2
"/>.
Options\OptionSet.cs (1)
101
=> value is not
ICodeStyleOption2
;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (7)
22
ICodeStyleOption2
WithValue(object value);
23
ICodeStyleOption2
WithNotification(NotificationOption2 notification);
85
object?
ICodeStyleOption2
.Value => this.Value;
86
ICodeStyleOption2
ICodeStyleOption2
.WithValue(object value) => WithValue((T)value);
87
ICodeStyleOption2
ICodeStyleOption2
.WithNotification(NotificationOption2 notification) => new CodeStyleOption2<T>(Value, notification);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
102
typeof(
ICodeStyleOption2
).IsAssignableFrom(type) ||