提交 28896d2c 编写于 作者: N Neal Gafter

Adjust CSharpReplaceDefaultLiteralCodeFixProvider for changed error code

上级 7082e2e5
......@@ -20,10 +20,10 @@ namespace Microsoft.CodeAnalysis.CSharp.ReplaceDefaultLiteral
internal sealed class CSharpReplaceDefaultLiteralCodeFixProvider : CodeFixProvider
{
private const string CS8313 = nameof(CS8313); // A default literal 'default' is not valid as a case constant. Use another literal (e.g. '0' or 'null') as appropriate. If you intended to write the default label, use 'default:' without 'case'.
private const string CS8363 = nameof(CS8363); // A default literal 'default' is not valid as a pattern. Use another literal (e.g. '0' or 'null') as appropriate. To match everything, use a discard pattern 'var _'.
private const string CS8505 = nameof(CS8505); // A default literal 'default' is not valid as a pattern. Use another literal (e.g. '0' or 'null') as appropriate. To match everything, use a discard pattern 'var _'.
public override ImmutableArray<string> FixableDiagnosticIds { get; } =
ImmutableArray.Create(CS8313, CS8363);
ImmutableArray.Create(CS8313, CS8505);
public override FixAllProvider GetFixAllProvider()
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册