Click or drag to resize

CompilationWithAnalyzers Class



Inheritance Hierarchy
SystemObject
  Microsoft.CodeAnalysis.DiagnosticsCompilationWithAnalyzers

Namespace:  Microsoft.CodeAnalysis.Diagnostics
Assembly:  Microsoft.CodeAnalysis (in Microsoft.CodeAnalysis.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public class CompilationWithAnalyzers

The CompilationWithAnalyzers type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyAnalysisOptions
Options to configure analyzer execution.
Public propertyAnalyzers
Analyzers to execute on the compilation.
Public propertyCancellationToken
An optional cancellation token which can be used to cancel analysis. Note: This token is only used if the API invoked to get diagnostics doesn't provide a cancellation token.
Public propertyCompilation
Underlying Compilation with a non-null EventQueue, used to drive analyzer execution.
Top
Methods
  NameDescription
Public methodStatic memberClearAnalyzerState
This method should be invoked when the analyzer host is disposing off the given analyzers. It clears the cached internal state (supported descriptors, registered actions, exception handlers, etc.) for analyzers.
Public methodGetAllDiagnosticsAsync
Returns all diagnostics produced by compilation and by all Analyzers.
Public methodGetAllDiagnosticsAsync(Void)
Public methodGetAnalysisResultAsync(Void)
Public methodGetAnalysisResultAsync(Void, AnalysisResult)
Public methodGetAnalyzerCompilationDiagnosticsAsync(Void) Obsolete.
Public methodGetAnalyzerCompilationDiagnosticsAsync(Void, ImmutableArrayDiagnostic) Obsolete.
Public methodGetAnalyzerDiagnosticsAsync
Returns diagnostics produced by all Analyzers.
Public methodGetAnalyzerDiagnosticsAsync(Void)
Public methodGetAnalyzerDiagnosticsAsync(Void, ImmutableArrayDiagnostic)
Public methodGetAnalyzerSemanticDiagnosticsAsync(Void, ImmutableArrayDiagnostic, SemanticModel)
Public methodGetAnalyzerSemanticDiagnosticsAsync(Void, ImmutableArrayDiagnostic, SemanticModel, NullableT)
Public methodGetAnalyzerSyntaxDiagnosticsAsync(Void, ImmutableArrayDiagnostic)
Public methodGetAnalyzerSyntaxDiagnosticsAsync(Void, ImmutableArrayDiagnostic, SyntaxTree)
Public methodGetAnalyzerTelemetryInfoAsync
Public methodStatic memberGetEffectiveDiagnostics(Void, Diagnostic)
Public methodStatic memberIsDiagnosticAnalyzerSuppressed
Top
See Also