//TODO: Make this a subscription based API, where you register the symbol type you want to test and it registerd to the correct calls public void ProcessSymbol(SymbolAnalysisContext context) { ICodeAnalyzerDianosticReporter reporter = new CodeAnalyzerDianosticReporter(context.ReportDiagnostic, diagnosticRule); AnalyzeSymbol(context, reporter); }
public void ProcessCodeBlock(CodeBlockAnalysisContext context) { ICodeAnalyzerDianosticReporter reporter = new CodeAnalyzerDianosticReporter(context.ReportDiagnostic, diagnosticRule); AnalyzeCodeBlock(context, reporter); }