39 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)
230/// Returns diagnostics produced by all <see cref="Analyzers"/>. 239/// Returns diagnostics produced by all <see cref="Analyzers"/>. 245return await GetAnalyzerDiagnosticsCoreAsync(Analyzers, cancellationToken).ConfigureAwait(false); 261/// Executes all <see cref="Analyzers"/> and returns the corresponding <see cref="AnalysisResult"/> with all diagnostics and telemetry info. 265return await GetAnalysisResultCoreAsync(Analyzers, cancellationToken).ConfigureAwait(false); 281/// Returns all diagnostics produced by compilation and by all <see cref="Analyzers"/>. 290/// Returns all diagnostics produced by compilation and by all <see cref="Analyzers"/>. 294var diagnostics = await getAllDiagnosticsWithoutStateTrackingAsync(Analyzers, cancellationToken: cancellationToken).ConfigureAwait(false); 321/// Returns diagnostics produced by compilation actions of all <see cref="Analyzers"/>. 326return await GetAnalyzerCompilationDiagnosticsCoreAsync(Analyzers, cancellationToken).ConfigureAwait(false); 388/// Returns syntax diagnostics produced by all <see cref="Analyzers"/> from analyzing the given <paramref name="tree"/>. 399return await GetAnalyzerSyntaxDiagnosticsCoreAsync(tree, Analyzers, filterSpan: null, cancellationToken).ConfigureAwait(false); 403/// Returns syntax diagnostics produced by all <see cref="Analyzers"/> from analyzing the given <paramref name="tree"/>, optionally scoped to a <paramref name="filterSpan"/>. 415return await GetAnalyzerSyntaxDiagnosticsCoreAsync(tree, Analyzers, filterSpan, cancellationToken).ConfigureAwait(false); 454/// Returns an <see cref="AnalysisResult"/> populated with <see cref="AnalysisResult.SyntaxDiagnostics"/> produced by all <see cref="Analyzers"/> from analyzing the given <paramref name="tree"/>. 463return GetAnalysisResultCoreAsync(new SourceOrAdditionalFile(tree), Analyzers, filterSpan: null, cancellationToken); 467/// Returns an <see cref="AnalysisResult"/> populated with <see cref="AnalysisResult.SyntaxDiagnostics"/> produced by all <see cref="Analyzers"/> 478return GetAnalysisResultCoreAsync(new SourceOrAdditionalFile(tree), Analyzers, filterSpan, cancellationToken); 514/// 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"/>. 524return await GetAnalysisResultCoreAsync(new SourceOrAdditionalFile(file), Analyzers, filterSpan: null, cancellationToken).ConfigureAwait(false); 544/// 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"/>, 556return await GetAnalysisResultCoreAsync(new SourceOrAdditionalFile(file), Analyzers, filterSpan, cancellationToken).ConfigureAwait(false); 592/// Returns semantic diagnostics produced by all <see cref="Analyzers"/> from analyzing the given <paramref name="model"/>, optionally scoped to a <paramref name="filterSpan"/>. 602return await GetAnalyzerSemanticDiagnosticsCoreAsync(model, filterSpan, Analyzers, cancellationToken).ConfigureAwait(false); 622/// 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"/>. 632return GetAnalysisResultCoreAsync(model, filterSpan, this.Analyzers, cancellationToken);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
404foreach (var analyzer in compilationWithAnalyzers.Analyzers)
Microsoft.CodeAnalysis.Features (6)
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 (1)
53var compilationBasedProjectAnalyzers = compilationWithAnalyzers?.Analyzers.ToImmutableHashSet();
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
404foreach (var analyzer in compilationWithAnalyzers.Analyzers)
Roslyn.VisualStudio.Next.UnitTests (3)
Services\VisualStudioDiagnosticAnalyzerExecutorTests.cs (3)
166var analyzerResult = result.AnalysisResult[compilationWithAnalyzers.Analyzers[0]]; 206var analyzerResult = result.AnalysisResult[compilationWithAnalyzers.Analyzers[0]]; 237return result.AnalysisResult[compilationWithAnalyzers.Analyzers[0]];