提交 d2a3f73f 编写于 作者: M Manish Vasani

Enable UseAutoProperyAnalyzer - this should be fixed with the v2 IDE diagnostic engine. (#11333)

Fixes #5408
上级 d8f45474
......@@ -12,9 +12,8 @@
namespace Microsoft.CodeAnalysis.Editor.CSharp.UseAutoProperty
{
// https://github.com/dotnet/roslyn/issues/5408
//[Export]
//[DiagnosticAnalyzer(LanguageNames.CSharp)]
[Export]
[DiagnosticAnalyzer(LanguageNames.CSharp)]
internal class UseAutoPropertyAnalyzer : AbstractUseAutoPropertyAnalyzer<PropertyDeclarationSyntax, FieldDeclarationSyntax, VariableDeclaratorSyntax, ExpressionSyntax>
{
protected override bool SupportsReadOnlyProperties(Compilation compilation)
......
......@@ -8,9 +8,8 @@ Imports Microsoft.CodeAnalysis.UseAutoProperty
Imports Microsoft.CodeAnalysis.VisualBasic.Syntax
Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UseAutoProperty
' https://github.com/dotnet/roslyn/issues/5408
'<Export>
'<DiagnosticAnalyzer(LanguageNames.VisualBasic)>
<Export>
<DiagnosticAnalyzer(LanguageNames.VisualBasic)>
Friend Class UseAutoPropertyAnalyzer
Inherits AbstractUseAutoPropertyAnalyzer(Of PropertyBlockSyntax, FieldDeclarationSyntax, ModifiedIdentifierSyntax, ExpressionSyntax)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册