private AnalyzerExecutor GetAnalyzerExecutorForClone(Compilation compilation, Action <Diagnostic> addDiagnostic, DiagnosticAnalyzer analyzerForExceptionDiagnostics) { // Report analyzer exception diagnostics on original analyzer, not the temporary cloned one. Action <Exception, DiagnosticAnalyzer, Diagnostic> onAnalyzerException = (ex, a, diag) => _onAnalyzerException(ex, analyzerForExceptionDiagnostics, diag); return(AnalyzerExecutor.Create(compilation, _analyzerOptions, addDiagnostic, onAnalyzerException, AnalyzerHelper.IsCompilerAnalyzer, AnalyzerManager.Instance, s_analyzerGateMap.GetOrCreateValue, cancellationToken: _cancellationToken)); }
private AnalyzerExecutor GetAnalyzerExecutor(DiagnosticAnalyzer analyzer, Compilation compilation, Action <Diagnostic> addDiagnostic) { return(AnalyzerExecutor.Create(compilation, _analyzerOptions, addDiagnostic, _onAnalyzerException, AnalyzerHelper.IsCompilerAnalyzer, AnalyzerManager.Instance, cancellationToken: _cancellationToken)); }
private AnalyzerExecutor GetAnalyzerExecutor(DiagnosticAnalyzer analyzer, Compilation compilation, Action <Diagnostic> addDiagnostic) { return(AnalyzerExecutor.Create(compilation, _analyzerOptions, addDiagnostic, _onAnalyzerException, _cancellationToken)); }