提交 808a1229 编写于 作者: A Allison Chou

Bug fix, to-do add tests

上级 855509af
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Immutable;
using Microsoft.CodeAnalysis.CodeStyle;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.CodeAnalysis.Options;
......@@ -12,7 +13,7 @@ internal abstract class AbstractUseInferredMemberNameDiagnosticAnalyzer : Abstra
public AbstractUseInferredMemberNameDiagnosticAnalyzer()
: base(IDEDiagnosticIds.UseInferredMemberNameDiagnosticId,
CodeStyleOptions.PreferInferredTupleNames,
options: ImmutableHashSet.Create<IPerLanguageOption>(CodeStyleOptions.PreferInferredTupleNames, CodeStyleOptions.PreferInferredAnonymousTypeMemberNames),
new LocalizableResourceString(nameof(FeaturesResources.Use_inferred_member_name), FeaturesResources.ResourceManager, typeof(FeaturesResources)),
new LocalizableResourceString(nameof(FeaturesResources.Member_name_can_be_simplified), FeaturesResources.ResourceManager, typeof(FeaturesResources)))
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册