CompilationWithAnalyzers
CompilationWithAnalyzers(Compilation, ImmutableArray<DiagnosticAnalyzer>, AnalyzerOptions)
CompilationWithAnalyzers(Compilation, ImmutableArray<DiagnosticAnalyzer>, CompilationWithAnalyzersOptions)
CompilationWithAnalyzers(Compilation, ImmutableArray<DiagnosticAnalyzer>, AnalyzerOptions, CancellationToken)
AnalysisOptions
Analyzers
CancellationToken
Compilation
ClearAnalyzerState(ImmutableArray<DiagnosticAnalyzer>)
GetAllDiagnosticsAsync()
GetAllDiagnosticsAsync(CancellationToken)
GetAnalysisResultAsync(CancellationToken)
GetAnalysisResultAsync(AdditionalText, CancellationToken)
GetAnalysisResultAsync(SyntaxTree, CancellationToken)
GetAnalysisResultAsync(AdditionalText, TextSpan?, CancellationToken)
GetAnalysisResultAsync(SemanticModel, TextSpan?, CancellationToken)
GetAnalysisResultAsync(SyntaxTree, TextSpan?, CancellationToken)
GetAnalysisResultAsync(ImmutableArray<DiagnosticAnalyzer>, CancellationToken)
GetAnalysisResultAsync(AdditionalText, ImmutableArray<DiagnosticAnalyzer>, CancellationToken)
GetAnalysisResultAsync(SyntaxTree, ImmutableArray<DiagnosticAnalyzer>, CancellationToken)
GetAnalysisResultAsync(AdditionalText, TextSpan?, ImmutableArray<DiagnosticAnalyzer>, CancellationToken)
GetAnalysisResultAsync(SemanticModel, TextSpan?, ImmutableArray<DiagnosticAnalyzer>, CancellationToken)
GetAnalysisResultAsync(SyntaxTree, TextSpan?, ImmutableArray<DiagnosticAnalyzer>, CancellationToken)
GetAnalyzerCompilationDiagnosticsAsync(CancellationToken)
GetAnalyzerCompilationDiagnosticsAsync(ImmutableArray<DiagnosticAnalyzer>, CancellationToken)
GetAnalyzerDiagnosticsAsync()
GetAnalyzerDiagnosticsAsync(CancellationToken)
GetAnalyzerDiagnosticsAsync(ImmutableArray<DiagnosticAnalyzer>, CancellationToken)
GetAnalyzerSemanticDiagnosticsAsync(SemanticModel, TextSpan?, CancellationToken)
GetAnalyzerSemanticDiagnosticsAsync(SemanticModel, TextSpan?, ImmutableArray<DiagnosticAnalyzer>, CancellationToken)
GetAnalyzerSyntaxDiagnosticsAsync(SyntaxTree, CancellationToken)
GetAnalyzerSyntaxDiagnosticsAsync(SyntaxTree, TextSpan?, CancellationToken)
GetAnalyzerSyntaxDiagnosticsAsync(SyntaxTree, ImmutableArray<DiagnosticAnalyzer>, CancellationToken)
GetAnalyzerSyntaxDiagnosticsAsync(SyntaxTree, TextSpan?, ImmutableArray<DiagnosticAnalyzer>, CancellationToken)
GetAnalyzerTelemetryInfoAsync(DiagnosticAnalyzer, CancellationToken)
GetEffectiveDiagnostics(IEnumerable<Diagnostic>, Compilation)
GetEffectiveDiagnostics(ImmutableArray<Diagnostic>, Compilation)
IsDiagnosticAnalyzerSuppressed(DiagnosticAnalyzer, CompilationOptions, Action<Exception, DiagnosticAnalyzer, Diagnostic>)
netstandard2.1
namespace Microsoft.CodeAnalysis.Diagnostics
{
public class CompilationWithAnalyzers
{
[AsyncStateMachine(typeof(<GetAnalyzerCompilationDiagnosticsAsync>d__37))]
[Obsolete("This API was found to have performance issues and hence has been deprecated. Instead, invoke the API 'GetAnalysisResultAsync' and access the property 'CompilationDiagnostics' on the returned 'AnalysisResult' to fetch the compilation diagnostics.")]
public Task<ImmutableArray<Diagnostic!>>! GetAnalyzerCompilationDiagnosticsAsync(ImmutableArray<DiagnosticAnalyzer!> analyzers, CancellationToken cancellationToken);
}
}
.NET | 5.06.07.08.09.010.0 |
---|---|
.NET Core | 2.02.12.23.03.1 |
.NET Framework | 4.6.14.6.24.74.7.14.7.24.84.8.1 |
.NET Standard | 2.02.1 |
Information specific to netstandard2.1 | |
Assembly | Microsoft.CodeAnalysis , Version=4.13.0.0, PublicKeyToken=31bf3856ad364e35 |
Referencing | Your project needs a package reference to |
Package | Microsoft.CodeAnalysis.Common (4.13.0) netstandard2.0 |
Obsolete | This API was found to have performance issues and hence has been deprecated. Instead, invoke the API 'GetAnalysisResultAsync' and access the property 'CompilationDiagnostics' on the returned 'AnalysisResult' to fetch the compilation diagnostics. |
Platform Restrictions | This framework does not have platform annotations. |
- Built-in API
- Package-provided API