提交 17b80e57 编写于 作者: T Tom Meschter

Fix DeclarePublicAPIAnalyzer

The analyzer can report three different diagnostics, but currently only
returns two from the `SupportedDiagnostics` property.
上级 f23f9fc0
......@@ -89,7 +89,7 @@ public class DeclarePublicAPIAnalyzer : DiagnosticAnalyzer
MethodKind.EventRemove
};
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DeclareNewApiRule, RemoveDeletedApiRule);
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DeclareNewApiRule, RemoveDeletedApiRule, ExposedNoninstantiableType);
public override void Initialize(AnalysisContext context)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册