Req: Diagnostics for C#


Make the diagnostic tool capable of working on C# source code.
Closed May 24, 2014 at 11:51 PM by AdamSpeight2008
C# version of the Diagnostic has been implemented in commit 5263b83628e7.

Updated VSIX on the way.


AdamSpeight2008 wrote May 24, 2014 at 12:30 AM

Quick Analysis

I do not think it be that hard to do, as in principal the could share the exact same code. Add in the extra attributes for C#
ExportDiagnosticAnalyzer(DiagnosticAnalyzer.DiagnosticId, LanguageNames.VisualBasic)>
Public Class DiagnosticAnalyzer
  Implements ISyntaxNodeAnalyzer(Of Microsoft.CodeAnalysis.VisualBasic.SyntaxKind)
Implement the C# SyntaxKind.
Also I'm not sure if the version of Roslyn I'm using is capable of supporting two target languages in the same diagnostic.