3 instantiations of Option2
Text.Analyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (2)
126var option = new Option2<CodeStyleOption2<T>>(name, defaultValue, group, languageName, isEditorConfigOption: true, serializer: (serializerFactory ?? EditorConfigValueSerializer.CodeStyle).Invoke(defaultValue)); 138var option = new Option2<T>(name, defaultValue, group, languageName: null, isEditorConfigOption: true, serializer: serializer);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (1)
58internal static Option2<bool> InsertFinalNewLine = new(
29 references to Option2
Text.Analyzers (29)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (4)
118public static Option2<CodeStyleOption2<T>> CreateEditorConfigOption<T>( 126var option = new Option2<CodeStyleOption2<T>>(name, defaultValue, group, languageName, isEditorConfigOption: true, serializer: (serializerFactory ?? EditorConfigValueSerializer.CodeStyle).Invoke(defaultValue)); 131public static Option2<T> CreateEditorConfigOption<T>( 138var option = new Option2<T>(name, defaultValue, group, languageName: null, isEditorConfigOption: true, serializer: serializer);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOptions2.cs (6)
27private static Option2<CodeStyleOption2<T>> CreateOption<T>( 31private static Option2<T> CreateOption<T>( 107internal static readonly Option2<OperatorPlacementWhenWrappingPreference> OperatorPlacementWhenWrapping = CreateOption( 232internal static readonly Option2<string> FileHeaderTemplate = CreateOption( 238internal static readonly Option2<string> RemoveUnnecessarySuppressionExclusions = CreateOption( 304internal static readonly Option2<CodeStyleOption2<ForEachExplicitCastInSourcePreference>> ForEachExplicitCastInSource = CreateOption(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\VisualBasic\VisualBasicCodeStyleOptions.cs (6)
16private static Option2<CodeStyleOption2<T>> CreateOption<T>( 25public static readonly Option2<CodeStyleOption2<string>> PreferredModifierOrder = CreateOption( 33public static readonly Option2<CodeStyleOption2<bool>> PreferIsNotExpression = CreateOption( 38public static readonly Option2<CodeStyleOption2<bool>> PreferSimplifiedObjectCreation = CreateOption( 43public static readonly Option2<CodeStyleOption2<UnusedValuePreference>> UnusedValueExpressionStatement = CreateOption( 49public static readonly Option2<CodeStyleOption2<UnusedValuePreference>> UnusedValueAssignment = CreateOption(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (1)
58internal static Option2<bool> InsertFinalNewLine = new(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\IOptionReader.cs (4)
28public static T GetOption<T>(this IOptionsReader options, Option2<T> option) 31public static T GetOption<T>(this IOptionsReader options, Option2<T> option, T defaultValue) 40public static T GetOptionValue<T>(this IOptionsReader options, Option2<CodeStyleOption2<T>> option) 43public static T GetOptionValue<T>(this IOptionsReader options, Option2<CodeStyleOption2<T>> option, T defaultValue)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\IPublicOption.cs (1)
11/// to distinguish them from internal ones (<see cref="Option2{T}"/> and <see cref="PerLanguageOption2{T}"/>).
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
105public static implicit operator OptionKey2(Option2<T> option)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PublicOptionFactory.cs (6)
17public static Option2<T> WithPublicOption<T, TPublicValue>(this Option2<T> option, string feature, string name, Func<T, TPublicValue> toPublicValue, Func<TPublicValue, T> toInternalValue) 23public static Option2<T> WithPublicOption<T>(this Option2<T> option, string feature, string name) 26public static Option2<CodeStyleOption2<T>> WithPublicOption<T>(this Option2<CodeStyleOption2<T>> option, string feature, string name)