16 instantiations of PerLanguageOption2
Microsoft.CodeAnalysis.Workspaces (16)
Recommendations\RecommendationOptions.cs (2)
20
public static readonly PerLanguageOption2<bool> HideAdvancedMembers = new
PerLanguageOption2
<bool>(
24
public static readonly PerLanguageOption2<bool> FilterOutOfScopeLocals = new
PerLanguageOption2
<bool>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
149
var 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)
12
public static readonly PerLanguageOption2<bool> FadeOutUnusedImports =
new
("dotnet_fade_out_unused_imports", defaultValue: true);
13
public static readonly PerLanguageOption2<bool> FadeOutUnusedMembers =
new
("dotnet_fade_out_unused_members", defaultValue: true);
14
public static readonly PerLanguageOption2<bool> FadeOutUnreachableCode =
new
("dotnet_fade_out_unreachable_code", defaultValue: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Editing\GenerationOptions.cs (2)
15
public static readonly PerLanguageOption2<bool> PlaceSystemNamespaceFirst =
new
(
21
public static readonly PerLanguageOption2<bool> SeparateImportDirectiveGroups =
new
(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (7)
27
public static PerLanguageOption2<bool> UseTabs = new
PerLanguageOption2
<bool>(
32
public static PerLanguageOption2<int> TabSize = new
PerLanguageOption2
<int>(
36
public static PerLanguageOption2<int> IndentationSize = new
PerLanguageOption2
<int>(
40
public static PerLanguageOption2<string> NewLine = new
PerLanguageOption2
<string>(
62
public static PerLanguageOption2<IndentStyle> SmartIndent = new
PerLanguageOption2
<IndentStyle>(
81
public static readonly PerLanguageOption2<int> WrappingColumn =
new
(
89
public static readonly PerLanguageOption2<int> ConditionalExpressionWrappingLength =
new
(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Options\MemberDisplayOptions.cs (1)
30
public 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)
267
if (IDEDiagnosticIdToOptionMappingHelper.TryGetMappedFadingOption(diagnosticData.Id, out
var
fadingOption))
Microsoft.CodeAnalysis.Workspaces (68)
Options\GlobalOptionService.cs (2)
105
public T GetOption<T>(
PerLanguageOption2
<T> option, string language)
180
public void SetGlobalOption<T>(
PerLanguageOption2
<T> option, string language, T value)
Options\IGlobalOptionService.cs (2)
26
T GetOption<T>(
PerLanguageOption2
<T> option, string language);
41
void SetGlobalOption<T>(
PerLanguageOption2
<T> option, string language, T value);
Options\PerLanguageOption.cs (1)
14
/// <inheritdoc cref="
PerLanguageOption2
{T}"/>
Recommendations\RecommendationOptions.cs (2)
20
public static readonly
PerLanguageOption2
<bool> HideAdvancedMembers = new PerLanguageOption2<bool>(
24
public static readonly
PerLanguageOption2
<bool> FilterOutOfScopeLocals = new PerLanguageOption2<bool>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (2)
142
public static
PerLanguageOption2
<CodeStyleOption2<T>> CreatePerLanguageEditorConfigOption<T>(
149
var
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)
22
private static
PerLanguageOption2
<CodeStyleOption2<T>> CreatePerLanguageOption<T>(
34
private static
PerLanguageOption2
<CodeStyleOption2<bool>> CreateQualifyAccessOption(string name)
40
public static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> QualifyFieldAccess = CreateQualifyAccessOption(
47
public static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> QualifyPropertyAccess = CreateQualifyAccessOption(
54
public static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> QualifyMethodAccess = CreateQualifyAccessOption(
61
public static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> QualifyEventAccess = CreateQualifyAccessOption(
68
public static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> PreferIntrinsicPredefinedTypeKeywordInDeclaration = CreatePerLanguageOption(
77
public static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> PreferIntrinsicPredefinedTypeKeywordInMemberAccess = CreatePerLanguageOption(
83
internal static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> PreferObjectInitializer = CreatePerLanguageOption(
88
internal static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> PreferCollectionInitializer = CreatePerLanguageOption(
93
internal static readonly
PerLanguageOption2
<CodeStyleOption2<CollectionExpressionPreference>> PreferCollectionExpression = CreatePerLanguageOption(
101
internal static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> PreferSimplifiedBooleanExpressions = CreatePerLanguageOption(
114
internal static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> PreferCoalesceExpression = CreatePerLanguageOption(
119
internal static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> PreferNullPropagation = CreatePerLanguageOption(
124
internal static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> PreferExplicitTupleNames = CreatePerLanguageOption(
129
internal static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> PreferAutoProperties = CreatePerLanguageOption(
134
internal static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> PreferInferredTupleNames = CreatePerLanguageOption(
139
internal static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> PreferInferredAnonymousTypeMemberNames = CreatePerLanguageOption(
144
internal static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> PreferIsNullCheckOverReferenceEqualityMethod = CreatePerLanguageOption(
149
internal static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> PreferConditionalExpressionOverAssignment = CreatePerLanguageOption(
154
internal static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> PreferConditionalExpressionOverReturn = CreatePerLanguageOption(
159
internal static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> PreferCompoundAssignment = CreatePerLanguageOption(
164
internal static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> PreferSimplifiedInterpolation = CreatePerLanguageOption(
176
internal static readonly
PerLanguageOption2
<CodeStyleOption2<UnusedParametersPreference>> UnusedParameters = CreatePerLanguageOption(
206
internal static readonly
PerLanguageOption2
<CodeStyleOption2<AccessibilityModifiersRequired>> AccessibilityModifiersRequired = CreatePerLanguageOption(
226
internal static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> PreferReadonly = CreatePerLanguageOption(
250
private static
PerLanguageOption2
<CodeStyleOption2<ParenthesesPreference>> CreateParenthesesOption(CodeStyleOption2<ParenthesesPreference> defaultValue, string name)
276
internal static readonly
PerLanguageOption2
<CodeStyleOption2<ParenthesesPreference>> ArithmeticBinaryParentheses =
281
internal static readonly
PerLanguageOption2
<CodeStyleOption2<ParenthesesPreference>> OtherBinaryParentheses =
286
internal static readonly
PerLanguageOption2
<CodeStyleOption2<ParenthesesPreference>> RelationalBinaryParentheses =
291
internal static readonly
PerLanguageOption2
<CodeStyleOption2<ParenthesesPreference>> OtherParentheses =
327
internal static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> PreferSystemHashCode = CreatePerLanguageOption(
332
public static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> PreferNamespaceAndFolderMatchStructure = CreatePerLanguageOption(
337
internal static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> AllowMultipleBlankLines = CreatePerLanguageOption(
342
internal static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> AllowStatementImmediatelyAfterBlock = CreatePerLanguageOption(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\FadingOptions.cs (3)
12
public static readonly
PerLanguageOption2
<bool> FadeOutUnusedImports = new("dotnet_fade_out_unused_imports", defaultValue: true);
13
public static readonly
PerLanguageOption2
<bool> FadeOutUnusedMembers = new("dotnet_fade_out_unused_members", defaultValue: true);
14
public static readonly
PerLanguageOption2
<bool> FadeOutUnreachableCode = new("dotnet_fade_out_unreachable_code", defaultValue: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Editing\GenerationOptions.cs (2)
15
public static readonly
PerLanguageOption2
<bool> PlaceSystemNamespaceFirst = new(
21
public static readonly
PerLanguageOption2
<bool> SeparateImportDirectiveGroups = new(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (7)
27
public static
PerLanguageOption2
<bool> UseTabs = new PerLanguageOption2<bool>(
32
public static
PerLanguageOption2
<int> TabSize = new PerLanguageOption2<int>(
36
public static
PerLanguageOption2
<int> IndentationSize = new PerLanguageOption2<int>(
40
public static
PerLanguageOption2
<string> NewLine = new PerLanguageOption2<string>(
62
public static
PerLanguageOption2
<IndentStyle> SmartIndent = new PerLanguageOption2<IndentStyle>(
81
public static readonly
PerLanguageOption2
<int> WrappingColumn = new(
89
public static readonly
PerLanguageOption2
<int> ConditionalExpressionWrappingLength = new(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleOptions.cs (1)
23
internal 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)
68
public static
PerLanguageOption2
<T> WithPublicOption<T, TPublicValue>(this
PerLanguageOption2
<T> option, string feature, string name, Func<T, TPublicValue> toPublicValue, Func<TPublicValue, T> toInternalValue)
83
public static
PerLanguageOption2
<T> WithPublicOption<T>(this
PerLanguageOption2
<T> option, string feature, string name)
86
public static
PerLanguageOption2
<CodeStyleOption2<T>> WithPublicOption<T>(this
PerLanguageOption2
<CodeStyleOption2<T>> option, string feature, string name)
95
public static PerLanguageOption<T> ToPublicOption<T>(this
PerLanguageOption2
<T> option)
107
public static PerLanguageOption<CodeStyleOption<T>> ToPublicOption<T>(this
PerLanguageOption2
<CodeStyleOption2<T>> option)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Options\MemberDisplayOptions.cs (1)
30
public static readonly
PerLanguageOption2
<bool> HideAdvancedMembers = new(
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Options\OptionKeyTests.cs (1)
168
var
option = CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess;