Пример #1
0
        //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);
        }
Пример #2
0
        public void ProcessCodeBlock(CodeBlockAnalysisContext context)
        {
            ICodeAnalyzerDianosticReporter reporter = new CodeAnalyzerDianosticReporter(context.ReportDiagnostic, diagnosticRule);

            AnalyzeCodeBlock(context, reporter);
        }