16 instantiations of PerLanguageOption2
Microsoft.CodeAnalysis.Workspaces (16)
Recommendations\RecommendationOptions.cs (2)
20public static readonly PerLanguageOption2<bool> HideAdvancedMembers = new PerLanguageOption2<bool>( 24public static readonly PerLanguageOption2<bool> FilterOutOfScopeLocals = new PerLanguageOption2<bool>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
149var option = new PerLanguageOption2<CodeStyleOption2<T>>(name, defaultValue, group, isEditorConfigOption: true, serializer: (serializerFactory ?? EditorConfigValueSerializer.CodeStyle).Invoke(defaultValue));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\FadingOptions.cs (2)
12public static readonly PerLanguageOption2<bool> FadeOutUnusedImports = new("dotnet_fade_out_unused_imports", defaultValue: true); 13public static readonly PerLanguageOption2<bool> FadeOutUnreachableCode = new("dotnet_fade_out_unreachable_code", defaultValue: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Editing\GenerationOptions.cs (2)
15public static readonly PerLanguageOption2<bool> PlaceSystemNamespaceFirst = new( 21public static readonly PerLanguageOption2<bool> SeparateImportDirectiveGroups = new(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (7)
27public static PerLanguageOption2<bool> UseTabs = new PerLanguageOption2<bool>( 32public static PerLanguageOption2<int> TabSize = new PerLanguageOption2<int>( 36public static PerLanguageOption2<int> IndentationSize = new PerLanguageOption2<int>( 40public static PerLanguageOption2<string> NewLine = new PerLanguageOption2<string>( 62public static PerLanguageOption2<IndentStyle> SmartIndent = new PerLanguageOption2<IndentStyle>( 80public static readonly PerLanguageOption2<int> WrappingColumn = new( 88public static readonly PerLanguageOption2<int> ConditionalExpressionWrappingLength = new(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleOptions.cs (1)
24internal static PerLanguageOption2<NamingStylePreferences> NamingPreferences { get; } = new(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Options\MemberDisplayOptions.cs (1)
30public static readonly PerLanguageOption2<bool> HideAdvancedMembers = new(
70 references to PerLanguageOption2
Microsoft.CodeAnalysis.EditorFeatures (1)
Tagging\AbstractAsynchronousTaggerProvider.cs (1)
72/// <remarks>All values must either be an <see cref="Option2{T}"/> or a <see cref="PerLanguageOption2{T}"/>.</remarks>
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Extensions\ProtocolConversions.Diagnostics.cs (1)
267if (IDEDiagnosticIdToOptionMappingHelper.TryGetMappedFadingOption(diagnosticData.Id, out var fadingOption))
Microsoft.CodeAnalysis.Workspaces (67)
Options\GlobalOptionService.cs (2)
105public T GetOption<T>(PerLanguageOption2<T> option, string language) 180public void SetGlobalOption<T>(PerLanguageOption2<T> option, string language, T value)
Options\IGlobalOptionService.cs (2)
26T GetOption<T>(PerLanguageOption2<T> option, string language); 41void SetGlobalOption<T>(PerLanguageOption2<T> option, string language, T value);
Options\PerLanguageOption.cs (1)
14/// <inheritdoc cref="PerLanguageOption2{T}"/>
Recommendations\RecommendationOptions.cs (2)
20public static readonly PerLanguageOption2<bool> HideAdvancedMembers = new PerLanguageOption2<bool>( 24public static readonly PerLanguageOption2<bool> FilterOutOfScopeLocals = new PerLanguageOption2<bool>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (2)
142public static PerLanguageOption2<CodeStyleOption2<T>> CreatePerLanguageEditorConfigOption<T>( 149var option = new PerLanguageOption2<CodeStyleOption2<T>>(name, defaultValue, group, isEditorConfigOption: true, serializer: (serializerFactory ?? EditorConfigValueSerializer.CodeStyle).Invoke(defaultValue));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOptions2.cs (35)
23private static PerLanguageOption2<CodeStyleOption2<T>> CreatePerLanguageOption<T>( 35private static PerLanguageOption2<CodeStyleOption2<bool>> CreateQualifyAccessOption(string name) 41public static readonly PerLanguageOption2<CodeStyleOption2<bool>> QualifyFieldAccess = CreateQualifyAccessOption( 48public static readonly PerLanguageOption2<CodeStyleOption2<bool>> QualifyPropertyAccess = CreateQualifyAccessOption( 55public static readonly PerLanguageOption2<CodeStyleOption2<bool>> QualifyMethodAccess = CreateQualifyAccessOption( 62public static readonly PerLanguageOption2<CodeStyleOption2<bool>> QualifyEventAccess = CreateQualifyAccessOption( 69public static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferIntrinsicPredefinedTypeKeywordInDeclaration = CreatePerLanguageOption( 78public static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferIntrinsicPredefinedTypeKeywordInMemberAccess = CreatePerLanguageOption( 84internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferObjectInitializer = CreatePerLanguageOption( 89internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferCollectionInitializer = CreatePerLanguageOption( 94internal static readonly PerLanguageOption2<CodeStyleOption2<CollectionExpressionPreference>> PreferCollectionExpression = CreatePerLanguageOption( 102internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferSimplifiedBooleanExpressions = CreatePerLanguageOption( 115internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferCoalesceExpression = CreatePerLanguageOption( 120internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferNullPropagation = CreatePerLanguageOption( 125internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferExplicitTupleNames = CreatePerLanguageOption( 130internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferAutoProperties = CreatePerLanguageOption( 135internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferInferredTupleNames = CreatePerLanguageOption( 140internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferInferredAnonymousTypeMemberNames = CreatePerLanguageOption( 145internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferIsNullCheckOverReferenceEqualityMethod = CreatePerLanguageOption( 150internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferConditionalExpressionOverAssignment = CreatePerLanguageOption( 155internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferConditionalExpressionOverReturn = CreatePerLanguageOption( 160internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferCompoundAssignment = CreatePerLanguageOption( 165internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferSimplifiedInterpolation = CreatePerLanguageOption( 177internal static readonly PerLanguageOption2<CodeStyleOption2<UnusedParametersPreference>> UnusedParameters = CreatePerLanguageOption( 207internal static readonly PerLanguageOption2<CodeStyleOption2<AccessibilityModifiersRequired>> AccessibilityModifiersRequired = CreatePerLanguageOption( 227internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferReadonly = CreatePerLanguageOption( 251private static PerLanguageOption2<CodeStyleOption2<ParenthesesPreference>> CreateParenthesesOption(CodeStyleOption2<ParenthesesPreference> defaultValue, string name) 277internal static readonly PerLanguageOption2<CodeStyleOption2<ParenthesesPreference>> ArithmeticBinaryParentheses = 282internal static readonly PerLanguageOption2<CodeStyleOption2<ParenthesesPreference>> OtherBinaryParentheses = 287internal static readonly PerLanguageOption2<CodeStyleOption2<ParenthesesPreference>> RelationalBinaryParentheses = 292internal static readonly PerLanguageOption2<CodeStyleOption2<ParenthesesPreference>> OtherParentheses = 328internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferSystemHashCode = CreatePerLanguageOption( 333public static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferNamespaceAndFolderMatchStructure = CreatePerLanguageOption( 338internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> AllowMultipleBlankLines = CreatePerLanguageOption( 343internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> AllowStatementImmediatelyAfterBlock = CreatePerLanguageOption(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\FadingOptions.cs (2)
12public static readonly PerLanguageOption2<bool> FadeOutUnusedImports = new("dotnet_fade_out_unused_imports", defaultValue: true); 13public static readonly PerLanguageOption2<bool> FadeOutUnreachableCode = new("dotnet_fade_out_unreachable_code", defaultValue: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Editing\GenerationOptions.cs (2)
15public static readonly PerLanguageOption2<bool> PlaceSystemNamespaceFirst = new( 21public static readonly PerLanguageOption2<bool> SeparateImportDirectiveGroups = new(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (7)
27public static PerLanguageOption2<bool> UseTabs = new PerLanguageOption2<bool>( 32public static PerLanguageOption2<int> TabSize = new PerLanguageOption2<int>( 36public static PerLanguageOption2<int> IndentationSize = new PerLanguageOption2<int>( 40public static PerLanguageOption2<string> NewLine = new PerLanguageOption2<string>( 62public static PerLanguageOption2<IndentStyle> SmartIndent = new PerLanguageOption2<IndentStyle>( 80public static readonly PerLanguageOption2<int> WrappingColumn = new( 88public static readonly PerLanguageOption2<int> ConditionalExpressionWrappingLength = new(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleOptions.cs (1)
24internal static PerLanguageOption2<NamingStylePreferences> NamingPreferences { get; } = new(
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\PerLanguageOption2.cs (1)
12/// Marker interface for <see cref="PerLanguageOption2{T}"/>.
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PublicOptionFactory.cs (8)
68public static PerLanguageOption2<T> WithPublicOption<T, TPublicValue>(this PerLanguageOption2<T> option, string feature, string name, Func<T, TPublicValue> toPublicValue, Func<TPublicValue, T> toInternalValue) 83public static PerLanguageOption2<T> WithPublicOption<T>(this PerLanguageOption2<T> option, string feature, string name) 86public static PerLanguageOption2<CodeStyleOption2<T>> WithPublicOption<T>(this PerLanguageOption2<CodeStyleOption2<T>> option, string feature, string name) 95public static PerLanguageOption<T> ToPublicOption<T>(this PerLanguageOption2<T> option) 107public static PerLanguageOption<CodeStyleOption<T>> ToPublicOption<T>(this PerLanguageOption2<CodeStyleOption2<T>> option)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Options\MemberDisplayOptions.cs (1)
30public static readonly PerLanguageOption2<bool> HideAdvancedMembers = new(
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Options\OptionKeyTests.cs (1)
168var option = CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess;