Class
DiagnosticAnalyzer
class DiagnosticAnalyzer
Namespace: Raven.CodeAnalysis.Diagnostics
Assembly: Raven.CodeAnalysis.dll
Source file: DiagnosticAnalyzer.cs
Inheritance: Object → DiagnosticAnalyzer
Base class for analyzers that can produce diagnostics for a compilation.
Derived types
Documented types in this API reference. Indirect relationships are marked.
- DisposableObjectAnalyzer
- EventDelegateMustBeNullableAnalyzer
- ExpressionBodyToBlockBodyAnalyzer
- ImmutableCollectionOperationResultAnalyzer
- MemberCanBePrivateAnalyzer
Show less
- MemberCanBeStaticAnalyzer
- MissingReturnTypeAnnotationAnalyzer
- NonNullDeclarationsAnalyzer
- PreferDuLinqExtensionsAnalyzer
- PreferIsNullOverEqualityAnalyzer
- PreferTargetTypedUnionCaseAnalyzer
- PreferTargetTypedUnionCaseInTargetTypedContextAnalyzer
- RedundantAccessorDeclarationAnalyzer
- SingleStatementBlockBodyAnalyzer
- StringConcatenationAnalyzer
- ThrowStatementUseResultAnalyzer
- UnawaitedTaskAnalyzer
- UninitializedFieldAnalyzer
- UninitializedPropertyAnalyzer
- UnsafeUnwrapAnalyzer
- UnusedExpressionResultAnalyzer
- UnusedImportDirectiveAnalyzer
- UnusedLocalAnalyzer (indirect)
- UnusedMethodAnalyzer
- UnusedParameterAnalyzer (indirect)
- UnusedPropertyAnalyzer
- UnusedVariableAnalyzer (indirect)
- UnusedVariableAnalyzerBase
- VarCanBeLetAnalyzer
Constructors
1 item
DiagnosticAnalyzer()
No summary available.
Properties
1 item
SupportedDiagnostics: ImmutableArray<DiagnosticDescriptor>
No summary available.
Methods
7 items
Analyze(compilation: Compilation, cancellationToken?: CancellationToken) -> IEnumerable<Diagnostic>
Runs the analyzer for the specified compilation.
Analyze(compilation: Compilation, syntaxTree: SyntaxTree?, cancellationToken?: CancellationToken) -> IEnumerable<Diagnostic>
Runs the analyzer for the specified syntax tree in the compilation.
Equals(obj: object?) -> bool
Determines whether the specified object is equal to the current object.
Inherited from Object.Equals
GetHashCode() -> int
Serves as the default hash function.
Inherited from Object.GetHashCode
GetType() -> Type
Gets the System.Type of the current instance.
Inherited from Object.GetType
Initialize(context: AnalysisContext) -> ()
Implement to register analysis actions.
ToString() -> string?
Returns a string that represents the current object.
Inherited from Object.ToString