Microsoft.CodeAnalysis.Diagnostics Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Classes
AdditionalTextValueProvider<TValue> |
Provides custom values associated with AdditionalText instances using the given computeValue delegate. |
AnalysisContext |
Context for initializing an analyzer. Analyzer initialization can use an AnalysisContext to register actions to be executed at any of:
|
AnalysisResult |
Stores the results of analyzer execution:
|
AnalyzerConfigOptions | |
AnalyzerConfigOptionsProvider |
Provide options from an analyzer config file keyed on a source file. |
AnalyzerFileReference |
Represents analyzers stored in an analyzer assembly file. |
AnalyzerImageReference |
Represents an in-memory analyzer reference image. |
AnalyzerLoadFailureEventArgs | |
AnalyzerOptions |
Options passed to DiagnosticAnalyzer. |
AnalyzerReference |
Represents an analyzer assembly reference that contains diagnostic analyzers. |
CodeBlockStartAnalysisContext<TLanguageKindEnum> |
Context for a code block start action. A code block start action can use a CodeBlockStartAnalysisContext<TLanguageKindEnum> to register actions to be executed at any of:
|
CompilationStartAnalysisContext |
Context for a compilation start action. A compilation start action can use a CompilationStartAnalysisContext to register actions to be executed at any of:
|
CompilationWithAnalyzers | |
CompilationWithAnalyzersOptions |
Options to configure analyzer execution within CompilationWithAnalyzers. |
DiagnosticAnalyzer |
The base type for diagnostic analyzers. |
DiagnosticAnalyzerAttribute |
Place this attribute onto a type to cause it to be considered a diagnostic analyzer. |
DiagnosticAnalyzerExtensions | |
DiagnosticSuppressor |
The base type for diagnostic suppressors that can programmatically suppress analyzer and/or compiler non-error diagnostics. |
OperationBlockStartAnalysisContext |
Context for an operation block start action. An operation block start action can use an OperationBlockStartAnalysisContext to register actions to be executed at any of:
|
SourceTextValueProvider<TValue> |
Provides custom values associated with SourceText instances using the given computeValue delegate. |
SuppressionInfo |
Contains information about the source of diagnostic suppression. |
SymbolStartAnalysisContext |
Context for a symbol start action to analyze a symbol and its members. A symbol start/end action can use a SymbolStartAnalysisContext to report Diagnostics about code within a ISymbol and its members. |
SyntaxTreeValueProvider<TValue> |
Provides custom values associated with SyntaxTree instances using the given computeValue delegate. |
UnresolvedAnalyzerReference |
Represents an analyzer reference that can't be resolved. |
Structs
AdditionalFileAnalysisContext |
Context for an additional file action. An additional file action can use an AdditionalFileAnalysisContext to report Diagnostics about a non-source AdditionalText document. |
CodeBlockAnalysisContext |
Context for a code block action or code block end action. A code block action or code block end action can use a CodeBlockAnalysisContext to report Diagnostics about a code block. |
CompilationAnalysisContext |
Context for a compilation action or compilation end action. A compilation action or compilation end action can use a CompilationAnalysisContext to report Diagnostics about a Compilation. |
OperationAnalysisContext |
Context for an operation action. An operation action can use an OperationAnalysisContext to report Diagnostics for an IOperation. |
OperationBlockAnalysisContext |
Context for an operation block action or operation block end action. An operation block action or operation block end action can use an OperationAnalysisContext to report Diagnostics about an operation block. |
SemanticModelAnalysisContext |
Context for a semantic model action. A semantic model action operates on the SemanticModel of a code document, and can use a SemanticModelAnalysisContext to report Diagnostics about the model. |
Suppression |
Programmatic suppression of a Diagnostic by a DiagnosticSuppressor. |
SuppressionAnalysisContext |
Context for suppressing analyzer and/or compiler non-error diagnostics reported for the compilation. |
SymbolAnalysisContext |
Context for a symbol action. A symbol action can use a SymbolAnalysisContext to report Diagnostics about an ISymbol. |
SyntaxNodeAnalysisContext |
Context for a syntax node action. A syntax node action can use a SyntaxNodeAnalysisContext to report Diagnostics for a SyntaxNode. |
SyntaxTreeAnalysisContext |
Context for a syntax tree action. A syntax tree action can use a SyntaxTreeAnalysisContext to report Diagnostics about a SyntaxTree for a code document. |
Enums
AnalyzerLoadFailureEventArgs.FailureErrorCode | |
GeneratedCodeAnalysisFlags |
Flags to configure mode of generated code analysis. |