CompilationWithAnalyzers.GetAnalyzerSemanticDiagnosticsAsync Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
GetAnalyzerSemanticDiagnosticsAsync(SemanticModel, Nullable<TextSpan>, CancellationToken) |
Devuelve los diagnósticos semánticos generados por todos Analyzers a partir del análisis de la clase especificada |
GetAnalyzerSemanticDiagnosticsAsync(SemanticModel, Nullable<TextSpan>, ImmutableArray<DiagnosticAnalyzer>, CancellationToken) |
Devuelve los diagnósticos semánticos generados por el |
GetAnalyzerSemanticDiagnosticsAsync(SemanticModel, Nullable<TextSpan>, CancellationToken)
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
Devuelve los diagnósticos semánticos generados por todos Analyzers a partir del análisis de la clase especificadamodel
, cuyo ámbito opcional es .filterSpan
Según el comportamiento de los analizadores, algunos diagnósticos que se notificarían para el árbol mediante un análisis de la compilación completa pueden estar ausentes.
public:
System::Threading::Tasks::Task<System::Collections::Immutable::ImmutableArray<Microsoft::CodeAnalysis::Diagnostic ^>> ^ GetAnalyzerSemanticDiagnosticsAsync(Microsoft::CodeAnalysis::SemanticModel ^ model, Nullable<Microsoft::CodeAnalysis::Text::TextSpan> filterSpan, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostic>> GetAnalyzerSemanticDiagnosticsAsync (Microsoft.CodeAnalysis.SemanticModel model, Microsoft.CodeAnalysis.Text.TextSpan? filterSpan, System.Threading.CancellationToken cancellationToken);
member this.GetAnalyzerSemanticDiagnosticsAsync : Microsoft.CodeAnalysis.SemanticModel * Nullable<Microsoft.CodeAnalysis.Text.TextSpan> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostic>>
Public Function GetAnalyzerSemanticDiagnosticsAsync (model As SemanticModel, filterSpan As Nullable(Of TextSpan), cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of Diagnostic))
Parámetros
- model
- SemanticModel
Modelo semántico que representa el árbol de sintaxis que se va a analizar.
- cancellationToken
- CancellationToken
Token de cancelación.
Devoluciones
Se aplica a
GetAnalyzerSemanticDiagnosticsAsync(SemanticModel, Nullable<TextSpan>, ImmutableArray<DiagnosticAnalyzer>, CancellationToken)
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
- Source:
- CompilationWithAnalyzers.cs
Devuelve los diagnósticos semánticos generados por el analyzers
especificado a partir del análisis de la clase especificadamodel
, cuyo ámbito opcional es .filterSpan
Según el comportamiento de los analizadores, algunos diagnósticos que se notificarían para el árbol mediante un análisis de la compilación completa pueden estar ausentes.
public:
System::Threading::Tasks::Task<System::Collections::Immutable::ImmutableArray<Microsoft::CodeAnalysis::Diagnostic ^>> ^ GetAnalyzerSemanticDiagnosticsAsync(Microsoft::CodeAnalysis::SemanticModel ^ model, Nullable<Microsoft::CodeAnalysis::Text::TextSpan> filterSpan, System::Collections::Immutable::ImmutableArray<Microsoft::CodeAnalysis::Diagnostics::DiagnosticAnalyzer ^> analyzers, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostic>> GetAnalyzerSemanticDiagnosticsAsync (Microsoft.CodeAnalysis.SemanticModel model, Microsoft.CodeAnalysis.Text.TextSpan? filterSpan, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer> analyzers, System.Threading.CancellationToken cancellationToken);
member this.GetAnalyzerSemanticDiagnosticsAsync : Microsoft.CodeAnalysis.SemanticModel * Nullable<Microsoft.CodeAnalysis.Text.TextSpan> * System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostic>>
Public Function GetAnalyzerSemanticDiagnosticsAsync (model As SemanticModel, filterSpan As Nullable(Of TextSpan), analyzers As ImmutableArray(Of DiagnosticAnalyzer), cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of Diagnostic))
Parámetros
- model
- SemanticModel
Modelo semántico que representa el árbol de sintaxis que se va a analizar.
- analyzers
- ImmutableArray<DiagnosticAnalyzer>
Analizadores cuyos diagnósticos son necesarios. Todos los analizadores especificados deben ser de los analizadores pasados al constructor de CompilationWithAnalyzers.
- cancellationToken
- CancellationToken
Token de cancelación.