1 instantiation of AnalysisResult
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalysisResultBuilder.cs (1)
524
return new
AnalysisResult
(analyzers, localSyntaxDiagnostics, localSemanticDiagnostics, localAdditionalFileDiagnostics, nonLocalDiagnostics, analyzerTelemetryInfo);
47 references to AnalysisResult
Microsoft.Analyzers.Local.Tests (1)
Resources\RoslynTestUtils.cs (1)
260
var
result = await comp!.WithAnalyzers(analyzers, options)
Microsoft.CodeAnalysis (38)
DiagnosticAnalyzer\AnalysisResultBuilder.cs (1)
500
internal
AnalysisResult
ToAnalysisResult(ImmutableArray<DiagnosticAnalyzer> analyzers, AnalysisScope analysisScope, CancellationToken cancellationToken)
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (37)
258
/// Executes all <see cref="Analyzers"/> and returns the corresponding <see cref="
AnalysisResult
"/> with all diagnostics and telemetry info.
260
public async Task<
AnalysisResult
> GetAnalysisResultAsync(CancellationToken cancellationToken)
266
/// Executes the given <paramref name="analyzers"/> and returns the corresponding <see cref="
AnalysisResult
"/> with all diagnostics and telemetry info.
270
public async Task<
AnalysisResult
> GetAnalysisResultAsync(ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken)
346
private async Task<
AnalysisResult
> GetAnalysisResultCoreAsync(ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken)
451
/// Returns an <see cref="
AnalysisResult
"/> populated with <see cref="
AnalysisResult
.SyntaxDiagnostics"/> produced by all <see cref="Analyzers"/> from analyzing the given <paramref name="tree"/>.
456
public Task<
AnalysisResult
> GetAnalysisResultAsync(SyntaxTree tree, CancellationToken cancellationToken)
464
/// Returns an <see cref="
AnalysisResult
"/> populated with <see cref="
AnalysisResult
.SyntaxDiagnostics"/> produced by all <see cref="Analyzers"/>
471
public Task<
AnalysisResult
> GetAnalysisResultAsync(SyntaxTree tree, TextSpan? filterSpan, CancellationToken cancellationToken)
479
/// Returns an <see cref="
AnalysisResult
"/> populated with <see cref="
AnalysisResult
.SyntaxDiagnostics"/> produced by given <paramref name="analyzers"/> from analyzing the given <paramref name="tree"/>.
485
public Task<
AnalysisResult
> GetAnalysisResultAsync(SyntaxTree tree, ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken)
494
/// Returns an <see cref="
AnalysisResult
"/> populated with <see cref="
AnalysisResult
.SyntaxDiagnostics"/> produced by given <paramref name="analyzers"/>
502
public Task<
AnalysisResult
> GetAnalysisResultAsync(SyntaxTree tree, TextSpan? filterSpan, ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken)
511
/// 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"/>.
517
public async Task<
AnalysisResult
> GetAnalysisResultAsync(AdditionalText file, CancellationToken cancellationToken)
525
/// Returns an <see cref="
AnalysisResult
"/> populated with <see cref="
AnalysisResult
.AdditionalFileDiagnostics"/> produced by given <paramref name="analyzers"/> from analyzing the given additional <paramref name="file"/>.
532
public async Task<
AnalysisResult
> GetAnalysisResultAsync(AdditionalText file, ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken)
541
/// 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"/>,
549
public async Task<
AnalysisResult
> GetAnalysisResultAsync(AdditionalText file, TextSpan? filterSpan, CancellationToken cancellationToken)
557
/// Returns an <see cref="
AnalysisResult
"/> populated with <see cref="
AnalysisResult
.AdditionalFileDiagnostics"/> produced by given <paramref name="analyzers"/> from analyzing the given additional <paramref name="file"/>,
566
public async Task<
AnalysisResult
> GetAnalysisResultAsync(AdditionalText file, TextSpan? filterSpan, ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken)
574
private async Task<
AnalysisResult
> GetAnalysisResultCoreAsync(SourceOrAdditionalFile file, ImmutableArray<DiagnosticAnalyzer> analyzers, TextSpan? filterSpan, CancellationToken cancellationToken)
619
/// 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"/>.
625
public Task<
AnalysisResult
> GetAnalysisResultAsync(SemanticModel model, TextSpan? filterSpan, CancellationToken cancellationToken)
633
/// Returns an <see cref="
AnalysisResult
"/> populated with <see cref="
AnalysisResult
.SemanticDiagnostics"/> produced by the given <paramref name="analyzers"/> from analyzing the given <paramref name="model"/>, optionally scoped to a <paramref name="filterSpan"/>.
640
public Task<
AnalysisResult
> GetAnalysisResultAsync(SemanticModel model, TextSpan? filterSpan, ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken)
648
private async Task<
AnalysisResult
> GetAnalysisResultCoreAsync(SemanticModel model, TextSpan? filterSpan, ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.CodeStyle (2)
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (2)
464
var
analysisResult = await compilationWithAnalyzers.GetAnalysisResultAsync(semanticModel.SyntaxTree, analyzers, cancellationToken).ConfigureAwait(false);
491
static void AddAllCompilationDiagnosticsForTree(
AnalysisResult
analysisResult, SyntaxTree tree, ArrayBuilder<Diagnostic> reportedDiagnostics)
Microsoft.CodeAnalysis.Features (5)
Diagnostics\Service\DiagnosticAnalyzerService_CoreAnalyze.cs (3)
41
var
analysisResult = await GetAnalysisResultAsync().ConfigureAwait(false);
76
void ReportAnalyzerPerformance(
AnalysisResult
analysisResult)
102
async Task<
AnalysisResult
> GetAnalysisResultAsync()
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (2)
464
var
analysisResult = await compilationWithAnalyzers.GetAnalysisResultAsync(semanticModel.SyntaxTree, analyzers, cancellationToken).ConfigureAwait(false);
491
static void AddAllCompilationDiagnosticsForTree(
AnalysisResult
analysisResult, SyntaxTree tree, ArrayBuilder<Diagnostic> reportedDiagnostics)
Microsoft.CodeAnalysis.Workspaces (1)
Diagnostics\Extensions.cs (1)
106
this
AnalysisResult
analysisResult,