37 references to Analyzers
Microsoft.CodeAnalysis (29)
DiagnosticAnalyzer\AnalysisScope.cs (3)
76/// i.e. <see cref="Analyzers"/> is the same set as <see cref="CompilationWithAnalyzers.Analyzers"/>. 202Debug.Assert(compilationWithAnalyzers.Analyzers.Contains(analyzer)); 206return compilationWithAnalyzers.Analyzers.Length == analyzers.Length;
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (26)
225/// Returns diagnostics produced by all <see cref="Analyzers"/>. 234/// Returns diagnostics produced by all <see cref="Analyzers"/>. 240return await GetAnalyzerDiagnosticsCoreAsync(Analyzers, cancellationToken).ConfigureAwait(false); 256/// Executes all <see cref="Analyzers"/> and returns the corresponding <see cref="AnalysisResult"/> with all diagnostics and telemetry info. 260return await GetAnalysisResultCoreAsync(Analyzers, cancellationToken).ConfigureAwait(false); 276/// Returns all diagnostics produced by compilation and by all <see cref="Analyzers"/>. 285/// Returns all diagnostics produced by compilation and by all <see cref="Analyzers"/>. 289var diagnostics = await getAllDiagnosticsWithoutStateTrackingAsync(Analyzers, cancellationToken: cancellationToken).ConfigureAwait(false); 316/// Returns diagnostics produced by compilation actions of all <see cref="Analyzers"/>. 321return await GetAnalyzerCompilationDiagnosticsCoreAsync(Analyzers, cancellationToken).ConfigureAwait(false); 383/// Returns syntax diagnostics produced by all <see cref="Analyzers"/> from analyzing the given <paramref name="tree"/>. 394return await GetAnalyzerSyntaxDiagnosticsCoreAsync(tree, Analyzers, filterSpan: null, cancellationToken).ConfigureAwait(false); 398/// Returns syntax diagnostics produced by all <see cref="Analyzers"/> from analyzing the given <paramref name="tree"/>, optionally scoped to a <paramref name="filterSpan"/>. 410return await GetAnalyzerSyntaxDiagnosticsCoreAsync(tree, Analyzers, filterSpan, cancellationToken).ConfigureAwait(false); 449/// Returns an <see cref="AnalysisResult"/> populated with <see cref="AnalysisResult.SyntaxDiagnostics"/> produced by all <see cref="Analyzers"/> from analyzing the given <paramref name="tree"/>. 458return GetAnalysisResultCoreAsync(new SourceOrAdditionalFile(tree), Analyzers, filterSpan: null, cancellationToken); 462/// Returns an <see cref="AnalysisResult"/> populated with <see cref="AnalysisResult.SyntaxDiagnostics"/> produced by all <see cref="Analyzers"/> 473return GetAnalysisResultCoreAsync(new SourceOrAdditionalFile(tree), Analyzers, filterSpan, cancellationToken); 509/// Returns an <see cref="AnalysisResult"/> populated with <see cref="AnalysisResult.AdditionalFileDiagnostics"/> produced by all <see cref="Analyzers"/> from analyzing the given additional <paramref name="file"/>. 519return await GetAnalysisResultCoreAsync(new SourceOrAdditionalFile(file), Analyzers, filterSpan: null, cancellationToken).ConfigureAwait(false); 539/// Returns an <see cref="AnalysisResult"/> populated with <see cref="AnalysisResult.AdditionalFileDiagnostics"/> produced by all <see cref="Analyzers"/> from analyzing the given additional <paramref name="file"/>, 551return await GetAnalysisResultCoreAsync(new SourceOrAdditionalFile(file), Analyzers, filterSpan, cancellationToken).ConfigureAwait(false); 587/// Returns semantic diagnostics produced by all <see cref="Analyzers"/> from analyzing the given <paramref name="model"/>, optionally scoped to a <paramref name="filterSpan"/>. 597return await GetAnalyzerSemanticDiagnosticsCoreAsync(model, filterSpan, Analyzers, cancellationToken).ConfigureAwait(false); 617/// Returns an <see cref="AnalysisResult"/> populated with <see cref="AnalysisResult.SemanticDiagnostics"/> produced by all <see cref="Analyzers"/> from analyzing the given <paramref name="model"/>, optionally scoped to a <paramref name="filterSpan"/>. 627return GetAnalysisResultCoreAsync(model, filterSpan, this.Analyzers, cancellationToken);
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
404foreach (var analyzer in compilationWithAnalyzers.Analyzers)
Microsoft.CodeAnalysis.Features (7)
Diagnostics\Service\DiagnosticAnalyzerService_ComputeDiagnosticAnalysisResults.cs (1)
96if (compilationWithAnalyzers?.Analyzers.Length > 0)
Diagnostics\Service\DiagnosticAnalyzerService_CoreAnalyze.cs (3)
53var analyzers = documentAnalysisScope?.Analyzers ?? compilationWithAnalyzers.Analyzers; 109Debug.Assert(documentAnalysisScope.Analyzers.ToSet().IsSubsetOf(compilationWithAnalyzers.Analyzers)); 136var analyzers = documentAnalysisScope?.Analyzers ?? compilationWithAnalyzers.Analyzers;
Diagnostics\Service\DocumentAnalysisExecutor.cs (2)
54if (compilationWithAnalyzers is null || compilationWithAnalyzers.Analyzers.IsDefaultOrEmpty) 62compilationBasedProjectAnalyzers.AddRange(compilationWithAnalyzers.Analyzers);
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
404foreach (var analyzer in compilationWithAnalyzers.Analyzers)