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 (2)
12
public static readonly PerLanguageOption2<bool> FadeOutUnusedImports =
new
("dotnet_fade_out_unused_imports", defaultValue: true);
13
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>(
80
public static readonly PerLanguageOption2<int> WrappingColumn =
new
(
88
public static readonly PerLanguageOption2<int> ConditionalExpressionWrappingLength =
new
(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleOptions.cs (1)
24
internal static PerLanguageOption2<NamingStylePreferences> NamingPreferences { get; } =
new
(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Options\MemberDisplayOptions.cs (1)
30
public 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)
267
if (IDEDiagnosticIdToOptionMappingHelper.TryGetMappedFadingOption(diagnosticData.Id, out
var
fadingOption))
Microsoft.CodeAnalysis.Workspaces (67)
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)
23
private static
PerLanguageOption2
<CodeStyleOption2<T>> CreatePerLanguageOption<T>(
35
private static
PerLanguageOption2
<CodeStyleOption2<bool>> CreateQualifyAccessOption(string name)
41
public static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> QualifyFieldAccess = CreateQualifyAccessOption(
48
public static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> QualifyPropertyAccess = CreateQualifyAccessOption(
55
public static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> QualifyMethodAccess = CreateQualifyAccessOption(
62
public static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> QualifyEventAccess = CreateQualifyAccessOption(
69
public static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> PreferIntrinsicPredefinedTypeKeywordInDeclaration = CreatePerLanguageOption(
78
public static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> PreferIntrinsicPredefinedTypeKeywordInMemberAccess = CreatePerLanguageOption(
84
internal static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> PreferObjectInitializer = CreatePerLanguageOption(
89
internal static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> PreferCollectionInitializer = CreatePerLanguageOption(
94
internal static readonly
PerLanguageOption2
<CodeStyleOption2<CollectionExpressionPreference>> PreferCollectionExpression = CreatePerLanguageOption(
102
internal static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> PreferSimplifiedBooleanExpressions = CreatePerLanguageOption(
115
internal static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> PreferCoalesceExpression = CreatePerLanguageOption(
120
internal static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> PreferNullPropagation = CreatePerLanguageOption(
125
internal static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> PreferExplicitTupleNames = CreatePerLanguageOption(
130
internal static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> PreferAutoProperties = CreatePerLanguageOption(
135
internal static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> PreferInferredTupleNames = CreatePerLanguageOption(
140
internal static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> PreferInferredAnonymousTypeMemberNames = CreatePerLanguageOption(
145
internal static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> PreferIsNullCheckOverReferenceEqualityMethod = CreatePerLanguageOption(
150
internal static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> PreferConditionalExpressionOverAssignment = CreatePerLanguageOption(
155
internal static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> PreferConditionalExpressionOverReturn = CreatePerLanguageOption(
160
internal static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> PreferCompoundAssignment = CreatePerLanguageOption(
165
internal static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> PreferSimplifiedInterpolation = CreatePerLanguageOption(
177
internal static readonly
PerLanguageOption2
<CodeStyleOption2<UnusedParametersPreference>> UnusedParameters = CreatePerLanguageOption(
207
internal static readonly
PerLanguageOption2
<CodeStyleOption2<AccessibilityModifiersRequired>> AccessibilityModifiersRequired = CreatePerLanguageOption(
227
internal static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> PreferReadonly = CreatePerLanguageOption(
251
private static
PerLanguageOption2
<CodeStyleOption2<ParenthesesPreference>> CreateParenthesesOption(CodeStyleOption2<ParenthesesPreference> defaultValue, string name)
277
internal static readonly
PerLanguageOption2
<CodeStyleOption2<ParenthesesPreference>> ArithmeticBinaryParentheses =
282
internal static readonly
PerLanguageOption2
<CodeStyleOption2<ParenthesesPreference>> OtherBinaryParentheses =
287
internal static readonly
PerLanguageOption2
<CodeStyleOption2<ParenthesesPreference>> RelationalBinaryParentheses =
292
internal static readonly
PerLanguageOption2
<CodeStyleOption2<ParenthesesPreference>> OtherParentheses =
328
internal static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> PreferSystemHashCode = CreatePerLanguageOption(
333
public static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> PreferNamespaceAndFolderMatchStructure = CreatePerLanguageOption(
338
internal static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> AllowMultipleBlankLines = CreatePerLanguageOption(
343
internal static readonly
PerLanguageOption2
<CodeStyleOption2<bool>> AllowStatementImmediatelyAfterBlock = CreatePerLanguageOption(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\FadingOptions.cs (2)
12
public static readonly
PerLanguageOption2
<bool> FadeOutUnusedImports = new("dotnet_fade_out_unused_imports", defaultValue: true);
13
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>(
80
public static readonly
PerLanguageOption2
<int> WrappingColumn = new(
88
public static readonly
PerLanguageOption2
<int> ConditionalExpressionWrappingLength = new(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleOptions.cs (1)
24
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;