1

Closed

Req: Diagnostics for C#

description

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

Updated VSIX on the way.

comments

AdamSpeight2008 wrote May 23, 2014 at 11:30 PM

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.