3 interfaces inheriting from IOption2
Microsoft.CodeAnalysis.Analyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\IPublicOption.cs (1)
13
internal interface IPublicOption :
IOption2
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
14
internal interface ISingleValuedOption :
IOption2
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
15
internal interface IPerLanguageValuedOption :
IOption2
34 references to IOption2
Microsoft.CodeAnalysis.Analyzers (34)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (3)
119
this ImmutableArray<
IOption2
>.Builder optionsBuilder,
132
this ImmutableArray<
IOption2
>.Builder optionsBuilder,
144
this ImmutableArray<
IOption2
>.Builder optionsBuilder,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOptions2.cs (3)
21
private static readonly ImmutableArray<
IOption2
>.Builder s_editorConfigOptionsBuilder = ImmutableArray.CreateBuilder<
IOption2
>();
351
internal static readonly ImmutableArray<
IOption2
> EditorConfigOptions = s_editorConfigOptionsBuilder.ToImmutable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\VisualBasic\VisualBasicCodeStyleOptions.cs (3)
14
private static readonly ImmutableArray<
IOption2
>.Builder s_allOptionsBuilder = ImmutableArray.CreateBuilder<
IOption2
>();
55
public static ImmutableArray<
IOption2
> EditorConfigOptions => s_allOptionsBuilder.ToImmutable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Editing\GenerationOptions.cs (1)
30
public static readonly ImmutableArray<
IOption2
> EditorConfigOptions = [PlaceSystemNamespaceFirst, SeparateImportDirectiveGroups];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalyzerConfigOptionsExtensions.cs (3)
14
public static T GetEditorConfigOption<T>(this AnalyzerConfigOptions analyzerConfigOptions,
IOption2
option, T defaultValue)
17
public static T GetEditorConfigOptionValue<T>(this AnalyzerConfigOptions analyzerConfigOptions,
IOption2
option, T defaultValue)
20
public static bool TryGetEditorConfigOption<T>(this AnalyzerConfigOptions analyzerConfigOptions,
IOption2
option, out T value)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (2)
97
internal static readonly ImmutableArray<
IOption2
> EditorConfigOptions = [UseTabs, TabSize, IndentationSize, NewLine, InsertFinalNewLine];
102
internal static readonly ImmutableArray<
IOption2
> UndocumentedOptions = [WrappingColumn, ConditionalExpressionWrappingLength];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleOptions.cs (1)
32
internal static readonly ImmutableArray<
IOption2
> EditorConfigOptions = [NamingPreferences];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
180
public static void Serialize(IDictionary<string, string> builder,
IOption2
option, string language, object? value)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\InternalOptionStorageMapping.cs (2)
11
internal abstract class OptionStorageMapping(
IOption2
internalOption)
16
public
IOption2
InternalOption { get; } = internalOption;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\IOption2.cs (2)
13
/// This ensures that all the sub-types of <see cref="
IOption2
"/> in either layer see an identical
16
internal interface IOption2 : IEquatable<
IOption2
?>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (5)
41
internal Option2(OptionDefinition<T> definition, string? languageName, Func<
IOption2
, IPublicOption>? publicOptionFactory)
76
OptionDefinition
IOption2
.Definition => Definition;
79
bool
IOption2
.IsPerLanguage => false;
93
public override bool Equals(object? obj) => Equals(obj as
IOption2
);
95
public bool Equals(
IOption2
? other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionKey2.cs (2)
17
public
IOption2
Option { get; }
20
public OptionKey2(
IOption2
option, string? language)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (5)
33
internal PerLanguageOption2(OptionDefinition<T> optionDefinition, Func<
IOption2
, IPublicOption>? publicOptionFactory)
64
OptionDefinition
IOption2
.Definition => Definition;
68
bool
IOption2
.IsPerLanguage => true;
81
public override bool Equals(object? obj) => Equals(obj as
IOption2
);
83
public bool Equals(
IOption2
? other)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Options\MemberDisplayOptions.cs (1)
39
public static readonly ImmutableArray<
IOption2
> EditorConfigOptions = [HideAdvancedMembers];