1 implementation of ICodeStyleOption2
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
75internal sealed partial class CodeStyleOption2<T>(T value, NotificationOption2 notification) : ICodeStyleOption2, IEquatable<CodeStyleOption2<T>?>
27 references to ICodeStyleOption2
Microsoft.CodeAnalysis.EditorFeatures (3)
EditorConfigSettings\Data\CodeStyleSetting.cs (1)
16public abstract ICodeStyleOption2 GetCodeStyle();
EditorConfigSettings\Data\CodeStyleSetting`1.cs (1)
50public override ICodeStyleOption2 GetCodeStyle()
EditorConfigSettings\Updater\SettingsUpdateHelper.cs (1)
65if (value is ICodeStyleOption2 codeStyleOption && !optionValue.Contains(':'))
Microsoft.CodeAnalysis.Features (6)
CodeFixes\Configuration\ConfigurationUpdater.cs (1)
388where option.DefaultValue is ICodeStyleOption2
CodeFixes\Configuration\ConfigureCodeStyle\ConfigureCodeStyleOptionCodeFixProvider.cs (4)
110var defaultValue = (ICodeStyleOption2?)option.DefaultValue; 141void AddCodeActionWithOptionValue(ICodeStyleOption2 codeStyleOption, object newValue) 144var configuredCodeStyleOption = codeStyleOption.WithValue(newValue);
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer.cs (1)
87Debug.Assert(option is { Definition.DefaultValue: ICodeStyleOption2 } == descriptor.CustomTags.Contains(WellKnownDiagnosticTags.CustomSeverityConfigurable));
Microsoft.CodeAnalysis.Workspaces (15)
CodeStyle\CodeStyleOption.cs (1)
14/// Internally the value is represented by <see cref="ICodeStyleOption2"/>.
Options\OptionSet.cs (1)
101=> value is not ICodeStyleOption2;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (12)
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); 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)
102typeof(ICodeStyleOption2).IsAssignableFrom(type) ||
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Options\OptionsTestHelpers.cs (1)
130ICodeStyleOption2 codeStyle => codeStyle
Microsoft.VisualStudio.LanguageServices (2)
Options\VisualStudioSettingsOptionPersister.cs (2)
144if (defaultValue is ICodeStyleOption2 codeStyle) 198if (value is ICodeStyleOption2 codeStyleOption)