CompilationWithAnalyzers.GetAnalyzerSyntaxDiagnosticsAsync Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
| GetAnalyzerSyntaxDiagnosticsAsync(SyntaxTree, CancellationToken) |
Retorna a sintaxe diagnóstico produzida por todos Analyzers a partir da análise do determinado |
| GetAnalyzerSyntaxDiagnosticsAsync(SyntaxTree, ImmutableArray<DiagnosticAnalyzer>, CancellationToken) |
Retorna a sintaxe diagnóstico produzida pela |
| GetAnalyzerSyntaxDiagnosticsAsync(SyntaxTree, Nullable<TextSpan>, CancellationToken) |
Retorna a sintaxe diagnóstico produzida por todosAnalyzers, desde a análise do determinado |
| GetAnalyzerSyntaxDiagnosticsAsync(SyntaxTree, Nullable<TextSpan>, ImmutableArray<DiagnosticAnalyzer>, CancellationToken) |
Retorna a sintaxe diagnóstico produzida pelo fornecido |
GetAnalyzerSyntaxDiagnosticsAsync(SyntaxTree, CancellationToken)
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
Retorna a sintaxe diagnóstico produzida por todos Analyzers a partir da análise do determinadotree.
Dependendo do comportamento dos analisadores, os diagnóstico retornados podem ter locais fora da árvore e alguns diagnóstico que seriam relatados para a árvore por uma análise da compilação completa podem estar ausentes.
public:
System::Threading::Tasks::Task<System::Collections::Immutable::ImmutableArray<Microsoft::CodeAnalysis::Diagnostic ^>> ^ GetAnalyzerSyntaxDiagnosticsAsync(Microsoft::CodeAnalysis::SyntaxTree ^ tree, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostic>> GetAnalyzerSyntaxDiagnosticsAsync(Microsoft.CodeAnalysis.SyntaxTree tree, System.Threading.CancellationToken cancellationToken);
member this.GetAnalyzerSyntaxDiagnosticsAsync : Microsoft.CodeAnalysis.SyntaxTree * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostic>>
Public Function GetAnalyzerSyntaxDiagnosticsAsync (tree As SyntaxTree, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of Diagnostic))
Parâmetros
- tree
- SyntaxTree
Árvore de sintaxe a ser analisada.
- cancellationToken
- CancellationToken
Token de cancelamento.
Retornos
Aplica-se a
GetAnalyzerSyntaxDiagnosticsAsync(SyntaxTree, ImmutableArray<DiagnosticAnalyzer>, CancellationToken)
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
Retorna a sintaxe diagnóstico produzida pela analyzers análise do determinadotree.
Dependendo do comportamento dos analisadores, os diagnóstico retornados podem ter locais fora da árvore e alguns diagnóstico que seriam relatados para a árvore por uma análise da compilação completa podem estar ausentes.
public:
System::Threading::Tasks::Task<System::Collections::Immutable::ImmutableArray<Microsoft::CodeAnalysis::Diagnostic ^>> ^ GetAnalyzerSyntaxDiagnosticsAsync(Microsoft::CodeAnalysis::SyntaxTree ^ tree, 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>> GetAnalyzerSyntaxDiagnosticsAsync(Microsoft.CodeAnalysis.SyntaxTree tree, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer> analyzers, System.Threading.CancellationToken cancellationToken);
member this.GetAnalyzerSyntaxDiagnosticsAsync : Microsoft.CodeAnalysis.SyntaxTree * System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostic>>
Public Function GetAnalyzerSyntaxDiagnosticsAsync (tree As SyntaxTree, analyzers As ImmutableArray(Of DiagnosticAnalyzer), cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of Diagnostic))
Parâmetros
- tree
- SyntaxTree
Árvore de sintaxe a ser analisada.
- analyzers
- ImmutableArray<DiagnosticAnalyzer>
Analisadores cujos diagnóstico são necessários. Todos os analisadores determinados devem ser dos analisadores passados para o construtor de CompilationWithAnalyzers.
- cancellationToken
- CancellationToken
Token de cancelamento.
Retornos
Aplica-se a
GetAnalyzerSyntaxDiagnosticsAsync(SyntaxTree, Nullable<TextSpan>, CancellationToken)
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
Retorna a sintaxe diagnóstico produzida por todosAnalyzers, desde a análise do determinadotree, opcionalmente com escopo para um filterSpan.
Dependendo do comportamento dos analisadores, os diagnóstico retornados podem ter locais fora da árvore ou do intervalo de filtro, e alguns diagnóstico que seriam relatados para a árvore por uma análise da compilação completa podem estar ausentes.
public System.Threading.Tasks.Task<System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostic>> GetAnalyzerSyntaxDiagnosticsAsync(Microsoft.CodeAnalysis.SyntaxTree tree, Microsoft.CodeAnalysis.Text.TextSpan? filterSpan, System.Threading.CancellationToken cancellationToken);
member this.GetAnalyzerSyntaxDiagnosticsAsync : Microsoft.CodeAnalysis.SyntaxTree * Nullable<Microsoft.CodeAnalysis.Text.TextSpan> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostic>>
Public Function GetAnalyzerSyntaxDiagnosticsAsync (tree As SyntaxTree, filterSpan As Nullable(Of TextSpan), cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of Diagnostic))
Parâmetros
- tree
- SyntaxTree
Árvore de sintaxe a ser analisada.
- cancellationToken
- CancellationToken
Token de cancelamento.
Retornos
Aplica-se a
GetAnalyzerSyntaxDiagnosticsAsync(SyntaxTree, Nullable<TextSpan>, ImmutableArray<DiagnosticAnalyzer>, CancellationToken)
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
- Origem:
- CompilationWithAnalyzers.cs
Retorna a sintaxe diagnóstico produzida pelo fornecido analyzers da análise do determinadotree, opcionalmente com escopo para um filterSpan.
Dependendo do comportamento dos analisadores, os diagnóstico retornados podem ter locais fora da árvore ou do intervalo de filtro, e alguns diagnóstico que seriam relatados para a árvore por uma análise da compilação completa podem estar ausentes.
public System.Threading.Tasks.Task<System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostic>> GetAnalyzerSyntaxDiagnosticsAsync(Microsoft.CodeAnalysis.SyntaxTree tree, Microsoft.CodeAnalysis.Text.TextSpan? filterSpan, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer> analyzers, System.Threading.CancellationToken cancellationToken);
member this.GetAnalyzerSyntaxDiagnosticsAsync : Microsoft.CodeAnalysis.SyntaxTree * 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 GetAnalyzerSyntaxDiagnosticsAsync (tree As SyntaxTree, filterSpan As Nullable(Of TextSpan), analyzers As ImmutableArray(Of DiagnosticAnalyzer), cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of Diagnostic))
Parâmetros
- tree
- SyntaxTree
Árvore de sintaxe a ser analisada.
- analyzers
- ImmutableArray<DiagnosticAnalyzer>
Analisadores cujos diagnóstico são necessários. Todos os analisadores determinados devem ser dos analisadores passados para o construtor de CompilationWithAnalyzers.
- cancellationToken
- CancellationToken
Token de cancelamento.