Version Used: Visual Studio 2017 RC 15.0.0-RC3+26127.0
Code to Reproduce:
using Microsoft.CodeAnalysis;
namespace My
{
public static class Foo
{
public static void Bar(SyntaxNode node)
{
ReportDiagnostic(node); // "Generate method" not suggested here
ReportDiagnostic2(node); // "Generate method" suggested here
}
}
}
It seems that this error occurs when there is a type with same name as method that would be generated. In this case there is enum "Microsoft.CodeAnalysis.ReportDiagnostic".
Version Used: Visual Studio 2017 RC 15.0.0-RC3+26127.0
Code to Reproduce:
It seems that this error occurs when there is a type with same name as method that would be generated. In this case there is enum "Microsoft.CodeAnalysis.ReportDiagnostic".