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)
256
/// Executes all <see cref="Analyzers"/> and returns the corresponding <see cref="
AnalysisResult
"/> with all diagnostics and telemetry info.
258
public async Task<
AnalysisResult
> GetAnalysisResultAsync(CancellationToken cancellationToken)
264
/// Executes the given <paramref name="analyzers"/> and returns the corresponding <see cref="
AnalysisResult
"/> with all diagnostics and telemetry info.
268
public async Task<
AnalysisResult
> GetAnalysisResultAsync(ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken)
344
private async Task<
AnalysisResult
> GetAnalysisResultCoreAsync(ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken)
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"/>.
454
public Task<
AnalysisResult
> GetAnalysisResultAsync(SyntaxTree tree, CancellationToken cancellationToken)
462
/// Returns an <see cref="
AnalysisResult
"/> populated with <see cref="
AnalysisResult
.SyntaxDiagnostics"/> produced by all <see cref="Analyzers"/>
469
public Task<
AnalysisResult
> GetAnalysisResultAsync(SyntaxTree tree, TextSpan? filterSpan, CancellationToken cancellationToken)
477
/// Returns an <see cref="
AnalysisResult
"/> populated with <see cref="
AnalysisResult
.SyntaxDiagnostics"/> produced by given <paramref name="analyzers"/> from analyzing the given <paramref name="tree"/>.
483
public Task<
AnalysisResult
> GetAnalysisResultAsync(SyntaxTree tree, ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken)
492
/// Returns an <see cref="
AnalysisResult
"/> populated with <see cref="
AnalysisResult
.SyntaxDiagnostics"/> produced by given <paramref name="analyzers"/>
500
public Task<
AnalysisResult
> GetAnalysisResultAsync(SyntaxTree tree, TextSpan? filterSpan, ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken 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"/>.
515
public async Task<
AnalysisResult
> GetAnalysisResultAsync(AdditionalText file, CancellationToken cancellationToken)
523
/// 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"/>.
530
public async Task<
AnalysisResult
> GetAnalysisResultAsync(AdditionalText file, ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken)
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"/>,
547
public async Task<
AnalysisResult
> GetAnalysisResultAsync(AdditionalText file, TextSpan? filterSpan, CancellationToken cancellationToken)
555
/// 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"/>,
564
public async Task<
AnalysisResult
> GetAnalysisResultAsync(AdditionalText file, TextSpan? filterSpan, ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken)
572
private async Task<
AnalysisResult
> GetAnalysisResultCoreAsync(SourceOrAdditionalFile file, ImmutableArray<DiagnosticAnalyzer> analyzers, TextSpan? filterSpan, CancellationToken cancellationToken)
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"/>.
623
public Task<
AnalysisResult
> GetAnalysisResultAsync(SemanticModel model, TextSpan? filterSpan, CancellationToken cancellationToken)
631
/// 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"/>.
638
public Task<
AnalysisResult
> GetAnalysisResultAsync(SemanticModel model, TextSpan? filterSpan, ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken)
646
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,