1 write to Analyzers
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalysisScope.cs (1)
146Analyzers = analyzers;
25 references to Analyzers
Microsoft.CodeAnalysis (25)
DiagnosticAnalyzer\AnalysisResultBuilder.cs (5)
189foreach (var analyzer in analysisScope.Analyzers) 435AddDiagnostics_NoLock(_nonLocalDiagnosticsOpt, analysisScope.Analyzers, builder); 451AddDiagnostics_NoLock(localDiagsByTree, analysisScope.Analyzers, builder); 460=> AddLocalDiagnosticsForPartialAnalysis_NoLock(localDiagnostics, analysisScope.FilterFileOpt!.Value.SourceTree, analysisScope.Analyzers, builder); 466=> AddLocalDiagnosticsForPartialAnalysis_NoLock(localDiagnostics, analysisScope.FilterFileOpt!.Value.AdditionalFile, analysisScope.Analyzers, builder);
DiagnosticAnalyzer\AnalysisScope.cs (4)
76/// i.e. <see cref="Analyzers"/> is the same set as <see cref="CompilationWithAnalyzers.Analyzers"/>. 87IsSingleFileAnalysis && Analyzers is [CompilerDiagnosticAnalyzer]; 179private ImmutableHashSet<DiagnosticAnalyzer> CreateAnalyzersSet() => Analyzers.ToImmutableHashSet(); 211=> new AnalysisScope(SyntaxTrees, AdditionalFiles, Analyzers, HasAllAnalyzers, FilterFileOpt, filterSpan, OriginalFilterFile, OriginalFilterSpan, IsSyntacticSingleFileAnalysis, ConcurrentAnalysis);
DiagnosticAnalyzer\AnalyzerDriver.cs (10)
702OnDriverException(WhenInitializedTask, this.AnalyzerExecutor, analysisScope.Analyzers, cancellationToken); 1642processedAnalyzers = analysisScope.Analyzers; 1854if (processedAnalyzers.Count < analysisScope.Analyzers.Length) 1856foreach (var analyzer in analysisScope.Analyzers) 1868Debug.Assert(completedAnalyzers.Count < analysisScope.Analyzers.Length); 2058if (analysisScope.Analyzers.Length == this.Analyzers.Length) 2063else if (analysisScope.Analyzers.Length == 1) 2066var analyzer = analysisScope.Analyzers[0]; 2087foreach (var analyzer in analysisScope.Analyzers) 2117foreach (var analyzer in analysisScope.Analyzers)
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (6)
371var analyzers = analysisScope.Analyzers; 376var suppressorsInAnalysisScope = analysisScope.Analyzers.OfType<DiagnosticSuppressor>().ToImmutableHashSet(); 781var (symbolStartAnalyzers, otherAnalyzers) = getSymbolStartAnalyzers(analysisScope.Analyzers, analyzerActionCounts); 841foreach (var analyzer in analysisScope.Analyzers) 975var pendingAnalyzers = _analysisResultBuilder.GetPendingAnalyzers(analysisScope.Analyzers, filterScope); 982return pendingAnalyzers.Length < analysisScope.Analyzers.Length ?