![]() | CompilationAnalysisContext Class |
Namespace: Microsoft.CodeAnalysis.Diagnostics
The CompilationAnalysisContext type exposes the following members.
Name | Description | |
---|---|---|
![]() | CompilationAnalysisContext | Initializes a new instance of the CompilationAnalysisContext class |
Name | Description | |
---|---|---|
![]() | CancellationToken |
Token to check for requested cancellation of the analysis.
|
![]() | Compilation | Compilation that is the subject of the analysis.
|
![]() | Options |
Options specified for the analysis.
|
Name | Description | |
---|---|---|
![]() | ReportDiagnostic |
Report a Diagnostic about a Compilation.
|
![]() | TryGetValueTValue(SourceText, SourceTextValueProviderTValue, TValue) |
Attempts to compute or get the cached value provided by the given valueProvider for the given text.
Note that the pair {valueProvider, text} acts as the key.
Reusing the same valueProvider instance across analyzer actions and/or analyzer instances can improve the overall analyzer performance by avoiding recomputation of the values.
|
![]() | TryGetValueTValue(SyntaxTree, SyntaxTreeValueProviderTValue, TValue) |
Attempts to compute or get the cached value provided by the given valueProvider for the given tree.
Note that the pair {valueProvider, tree} acts as the key.
Reusing the same valueProvider instance across analyzer actions and/or analyzer instances can improve the overall analyzer performance by avoiding recomputation of the values.
|