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 (3)
12public static readonly PerLanguageOption2<bool> FadeOutUnusedImports = new("dotnet_fade_out_unused_imports", defaultValue: true); 13public static readonly PerLanguageOption2<bool> FadeOutUnusedMembers = new("dotnet_fade_out_unused_members", defaultValue: true); 14public 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>( 81public static readonly PerLanguageOption2<int> WrappingColumn = new( 89public static readonly PerLanguageOption2<int> ConditionalExpressionWrappingLength = new(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Options\MemberDisplayOptions.cs (1)
30public static readonly PerLanguageOption2<bool> HideAdvancedMembers = new(
71 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 (68)
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)
22private static PerLanguageOption2<CodeStyleOption2<T>> CreatePerLanguageOption<T>( 34private static PerLanguageOption2<CodeStyleOption2<bool>> CreateQualifyAccessOption(string name) 40public static readonly PerLanguageOption2<CodeStyleOption2<bool>> QualifyFieldAccess = CreateQualifyAccessOption( 47public static readonly PerLanguageOption2<CodeStyleOption2<bool>> QualifyPropertyAccess = CreateQualifyAccessOption( 54public static readonly PerLanguageOption2<CodeStyleOption2<bool>> QualifyMethodAccess = CreateQualifyAccessOption( 61public static readonly PerLanguageOption2<CodeStyleOption2<bool>> QualifyEventAccess = CreateQualifyAccessOption( 68public static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferIntrinsicPredefinedTypeKeywordInDeclaration = CreatePerLanguageOption( 77public static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferIntrinsicPredefinedTypeKeywordInMemberAccess = CreatePerLanguageOption( 83internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferObjectInitializer = CreatePerLanguageOption( 88internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferCollectionInitializer = CreatePerLanguageOption( 93internal static readonly PerLanguageOption2<CodeStyleOption2<CollectionExpressionPreference>> PreferCollectionExpression = CreatePerLanguageOption( 101internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferSimplifiedBooleanExpressions = CreatePerLanguageOption( 114internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferCoalesceExpression = CreatePerLanguageOption( 119internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferNullPropagation = CreatePerLanguageOption( 124internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferExplicitTupleNames = CreatePerLanguageOption( 129internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferAutoProperties = CreatePerLanguageOption( 134internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferInferredTupleNames = CreatePerLanguageOption( 139internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferInferredAnonymousTypeMemberNames = CreatePerLanguageOption( 144internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferIsNullCheckOverReferenceEqualityMethod = CreatePerLanguageOption( 149internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferConditionalExpressionOverAssignment = CreatePerLanguageOption( 154internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferConditionalExpressionOverReturn = CreatePerLanguageOption( 159internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferCompoundAssignment = CreatePerLanguageOption( 164internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferSimplifiedInterpolation = CreatePerLanguageOption( 176internal static readonly PerLanguageOption2<CodeStyleOption2<UnusedParametersPreference>> UnusedParameters = CreatePerLanguageOption( 206internal static readonly PerLanguageOption2<CodeStyleOption2<AccessibilityModifiersRequired>> AccessibilityModifiersRequired = CreatePerLanguageOption( 226internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferReadonly = CreatePerLanguageOption( 250private static PerLanguageOption2<CodeStyleOption2<ParenthesesPreference>> CreateParenthesesOption(CodeStyleOption2<ParenthesesPreference> defaultValue, string name) 276internal static readonly PerLanguageOption2<CodeStyleOption2<ParenthesesPreference>> ArithmeticBinaryParentheses = 281internal static readonly PerLanguageOption2<CodeStyleOption2<ParenthesesPreference>> OtherBinaryParentheses = 286internal static readonly PerLanguageOption2<CodeStyleOption2<ParenthesesPreference>> RelationalBinaryParentheses = 291internal static readonly PerLanguageOption2<CodeStyleOption2<ParenthesesPreference>> OtherParentheses = 327internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferSystemHashCode = CreatePerLanguageOption( 332public static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferNamespaceAndFolderMatchStructure = CreatePerLanguageOption( 337internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> AllowMultipleBlankLines = CreatePerLanguageOption( 342internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> AllowStatementImmediatelyAfterBlock = CreatePerLanguageOption(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\FadingOptions.cs (3)
12public static readonly PerLanguageOption2<bool> FadeOutUnusedImports = new("dotnet_fade_out_unused_imports", defaultValue: true); 13public static readonly PerLanguageOption2<bool> FadeOutUnusedMembers = new("dotnet_fade_out_unused_members", defaultValue: true); 14public 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>( 81public static readonly PerLanguageOption2<int> WrappingColumn = new( 89public static readonly PerLanguageOption2<int> ConditionalExpressionWrappingLength = new(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleOptions.cs (1)
23internal 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;