Class
AnalysisContext
class AnalysisContext
Namespace: Raven.CodeAnalysis.Diagnostics
Assembly: Raven.CodeAnalysis.dll
Source file: DiagnosticAnalyzer.cs
Inheritance: Object → AnalysisContext
Context used to register analysis actions.
Methods
12 items
ConfigureGeneratedCodeAnalysis(analysisMode: GeneratedCodeAnalysisFlags) -> ()
Configures callbacks and reporting for source-generated trees. The default enables both.
EnableConcurrentExecution() -> ()
Allows analyzer actions from this analyzer to run concurrently with other concurrent analyzers. Analyzer implementations that enable this must not store mutable per-run state on th…
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
RegisterCompilationAction(action: CompilationAnalysisContext -> ()) -> ()
Registers an action executed once for the compilation being analyzed.
RegisterOperationAction(action: OperationAnalysisContext -> (), operationKinds: ...OperationKind[]) -> ()
Registers an action executed for semantic operations whose Raven.CodeAnalysis.Operations.IOperation.Kind matches one of the provided operationKinds.
RegisterSymbolAction(action: SymbolAnalysisContext -> (), symbolKinds: ...SymbolKind[]) -> ()
Registers an action executed for symbols whose Raven.CodeAnalysis.ISymbol.Kind matches one of the provided kinds.
RegisterSyntaxNodeAction(action: SyntaxNodeAnalysisContext -> (), syntaxKinds: ...SyntaxKind[]) -> ()
Registers an action executed for syntax nodes whose Raven.CodeAnalysis.Syntax.SyntaxNode.Kind matches one of the provided syntaxKinds.
RegisterSyntaxNodeAction(action: SyntaxNodeAnalysisContext -> (), scope: SyntaxNodeAnalysisScope, syntaxKinds: ...SyntaxKind[]) -> ()
Registers an action executed for syntax nodes whose Raven.CodeAnalysis.Syntax.SyntaxNode.Kind matches one of the provided syntaxKinds, with an explicit invalidation scope.
RegisterSyntaxTreeAction(action: SyntaxTreeAnalysisContext -> ()) -> ()
Registers an action executed for each syntax tree in a compilation.
ToString() -> string?
Returns a string that represents the current object.
Inherited from Object.ToString