Click or drag to resize

Microsoft.CodeAnalysis.Diagnostics Namespace



 
Classes
  ClassDescription
Public classAnalysisContext
Context for initializing an analyzer. Analyzer initialization can use an AnalysisContext to register actions to be executed at any of:
  • compilation start,
  • compilation end,
  • completion of parsing a code document,
  • completion of semantic analysis of a code document,
  • completion of semantic analysis of a symbol,
  • start of semantic analysis of a method body or an expression appearing outside a method body,
  • completion of semantic analysis of a method body or an expression appearing outside a method body, or
  • completion of semantic analysis of a syntax node.
Public classAnalysisResult
Stores the results of analyzer execution: 1. Local and non-local diagnostics, per-analyzer. 2. Analyzer execution times, if requested.
Public classAnalyzerFileReference
Represents analyzers stored in an analyzer assembly file.
Public classAnalyzerImageReference
Represents an in-memory analyzer reference image.
Public classAnalyzerLoadFailureEventArgs
Public classAnalyzerLoadFailureEventArgsFailureErrorCode
Public classAnalyzerOptions
Options passed to DiagnosticAnalyzer.
Public classAnalyzerReference
Represents an analyzer assembly reference that contains diagnostic analyzers.
Public classCodeBlockAnalysisContext
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.
Public classCodeBlockStartAnalysisContextTLanguageKindEnum
Context for a code block start action. A code block start action can use a CodeBlockStartAnalysisContextTLanguageKindEnum to register actions to be executed at any of:
  • completion of semantic analysis of a method body or an expression appearing outside a method body, or
  • completion of semantic analysis of a syntax node.
Public classCompilationAnalysisContext
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.
Public classCompilationStartAnalysisContext
Context for a compilation start action. A compilation start action can use a CompilationStartAnalysisContext to register actions to be executed at any of:
  • compilation end,
  • completion of parsing a code document,
  • completion of semantic analysis of a code document,
  • completion of semantic analysis of a symbol,
  • start of semantic analysis of a method body or an expression appearing outside a method body,
  • completion of semantic analysis of a method body or an expression appearing outside a method body, or
  • completion of semantic analysis of a syntax node.
Public classCompilationWithAnalyzers
Public classCompilationWithAnalyzersOptions
Options to configure analyzer execution within CompilationWithAnalyzers.
Public classDiagnosticAnalyzer
The base type for diagnostic analyzers.
Public classDiagnosticAnalyzerAttribute
Place this attribute onto a type to cause it to be considered a diagnostic analyzer.
Public classDiagnosticAnalyzerExtensions
Public classGeneratedCodeAnalysisFlags
Flags to configure mode of generated code analysis.
Public classOperationAnalysisContext
Context for an operation action. An operation action can use an OperationAnalysisContext to report Diagnostics for an IOperation.
Public classOperationBlockAnalysisContext
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.
Public classOperationBlockStartAnalysisContext
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:
  • completion of semantic analysis of a method body or an expression appearing outside a method body, or
  • completion of semantic analysis of an operation.
Public classSemanticModelAnalysisContext
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.
Public classSourceTextValueProviderTValue
Provides custom values associated with SourceText instances using the given computeValue delegate.
Public classSuppressionInfo
Contains information about the source of diagnostic suppression.
Public classSymbolAnalysisContext
Context for a symbol action. A symbol action can use a SymbolAnalysisContext to report Diagnostics about an ISymbol.
Public classSyntaxNodeAnalysisContext
Context for a syntax node action. A syntax node action can use a SyntaxNodeAnalysisContext to report Diagnostics for a SyntaxNode.
Public classSyntaxTreeAnalysisContext
Context for a syntax tree action. A syntax tree action can use a SyntaxTreeAnalysisContext to report Diagnostics about a SyntaxTree for a code document.
Public classSyntaxTreeValueProviderTValue
Provides custom values associated with SyntaxTree instances using the given computeValue delegate.
Public classUnresolvedAnalyzerReference
Represents an analyzer reference that can't be resolved.