共用方式為


CompilationWithAnalyzers.GetAnalysisResultAsync 方法

定義

多載

GetAnalysisResultAsync(SyntaxTree, Nullable<TextSpan>, ImmutableArray<DiagnosticAnalyzer>, CancellationToken)

AnalysisResult傳回填入 SyntaxDiagnostics 由指定 analyzers 從分析指定的 tree ,選擇性地限定為 filterSpan 的範圍。 視分析器的行為而定,透過完整編譯的分析來報告樹狀結構的一些診斷可能不存在。

GetAnalysisResultAsync(SemanticModel, Nullable<TextSpan>, ImmutableArray<DiagnosticAnalyzer>, CancellationToken)

AnalysisResult傳回填入 SemanticDiagnostics 由指定 analyzers 所產生之 ,從分析指定的 model 選擇性範圍設定為 filterSpan 。 視分析器的行為而定,透過完整編譯的分析來報告樹狀結構的一些診斷可能不存在。

GetAnalysisResultAsync(AdditionalText, Nullable<TextSpan>, ImmutableArray<DiagnosticAnalyzer>, CancellationToken)

AnalysisResult傳回填入 AdditionalFileDiagnostics 由指定 analyzers 所產生的 ,從分析指定的其他 file ,選擇性地限定為 filterSpan 。 針對這個 CompilationWithAnalyzers 實例,指定的 file 必須是 的 AdditionalFilesAnalysisOptions 。 視分析器的行為而定,透過完整編譯的分析報告檔案的某些診斷可能不存在。

GetAnalysisResultAsync(SyntaxTree, ImmutableArray<DiagnosticAnalyzer>, CancellationToken)

AnalysisResult傳回填入 SyntaxDiagnostics 由指定 analyzers 從分析指定的 tree 所產生的 。 視分析器的行為而定,透過完整編譯的分析來報告樹狀結構的一些診斷可能不存在。

GetAnalysisResultAsync(SemanticModel, Nullable<TextSpan>, CancellationToken)

AnalysisResult傳回填入 SemanticDiagnostics 由所有 Analyzers 產生的 ,從分析指定的 model 選擇性範圍設定為 filterSpan 。 視分析器的行為而定,透過完整編譯的分析來報告樹狀結構的一些診斷可能不存在。

GetAnalysisResultAsync(SyntaxTree, Nullable<TextSpan>, CancellationToken)

AnalysisResult傳回填入 SyntaxDiagnostics 由所有 Analyzers 產生的 ,從分析指定的 tree 選擇性範圍設定為 filterSpan 。 視分析器的行為而定,透過完整編譯的分析來報告樹狀結構的一些診斷可能不存在。

GetAnalysisResultAsync(AdditionalText, ImmutableArray<DiagnosticAnalyzer>, CancellationToken)

AnalysisResult傳回填入 AdditionalFileDiagnostics 所產生之 analyzers 的 ,其會從分析指定的其他 file 。 針對這個 CompilationWithAnalyzers 實例,指定的 file 必須是 的 AdditionalFilesAnalysisOptions 。 視分析器的行為而定,透過完整編譯的分析報告檔案的某些診斷可能不存在。

GetAnalysisResultAsync(ImmutableArray<DiagnosticAnalyzer>, CancellationToken)

執行指定的 analyzers ,並傳回與所有診斷和遙測資訊對應的 AnalysisResult

GetAnalysisResultAsync(AdditionalText, Nullable<TextSpan>, CancellationToken)

AnalysisResult傳回填入 AdditionalFileDiagnostics 由所有 Analyzers 產生的 ,從分析指定的其他 , file 選擇性地限定為 filterSpan 。 針對這個 CompilationWithAnalyzers 實例,指定的 file 必須是 的 AdditionalFilesAnalysisOptions 。 視分析器的行為而定,透過完整編譯的分析報告檔案的某些診斷可能不存在。

GetAnalysisResultAsync(SyntaxTree, CancellationToken)

AnalysisResult傳回填入 SyntaxDiagnostics 由所有 Analyzers 從分析指定的 tree 所產生的 。 視分析器的行為而定,透過完整編譯的分析來報告樹狀結構的一些診斷可能不存在。

GetAnalysisResultAsync(AdditionalText, CancellationToken)

AnalysisResult傳回填入 AdditionalFileDiagnostics 由所有 Analyzers 產生的 ,從分析指定的其他 file 。 針對這個 CompilationWithAnalyzers 實例,指定的 file 必須是 的 AdditionalFilesAnalysisOptions 。 視分析器的行為而定,透過完整編譯的分析報告檔案的某些診斷可能不存在。

GetAnalysisResultAsync(CancellationToken)

執行所有 Analyzers ,並傳回與所有診斷和遙測資訊對應的 AnalysisResult

GetAnalysisResultAsync(SyntaxTree, Nullable<TextSpan>, ImmutableArray<DiagnosticAnalyzer>, CancellationToken)

Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs

AnalysisResult傳回填入 SyntaxDiagnostics 由指定 analyzers 從分析指定的 tree ,選擇性地限定為 filterSpan 的範圍。 視分析器的行為而定,透過完整編譯的分析來報告樹狀結構的一些診斷可能不存在。

public System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Diagnostics.AnalysisResult> GetAnalysisResultAsync (Microsoft.CodeAnalysis.SyntaxTree tree, Microsoft.CodeAnalysis.Text.TextSpan? filterSpan, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer> analyzers, System.Threading.CancellationToken cancellationToken);
member this.GetAnalysisResultAsync : Microsoft.CodeAnalysis.SyntaxTree * Nullable<Microsoft.CodeAnalysis.Text.TextSpan> * System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Diagnostics.AnalysisResult>
Public Function GetAnalysisResultAsync (tree As SyntaxTree, filterSpan As Nullable(Of TextSpan), analyzers As ImmutableArray(Of DiagnosticAnalyzer), cancellationToken As CancellationToken) As Task(Of AnalysisResult)

參數

tree
SyntaxTree

要分析的語法樹狀結構。

filterSpan
Nullable<TextSpan>

選擇性篩選範圍,可在樹狀結構內進行分析。

analyzers
ImmutableArray<DiagnosticAnalyzer>

需要診斷的分析器。 所有指定的分析器都必須來自傳遞至 建構函式的分析 CompilationWithAnalyzers 器。

cancellationToken
CancellationToken

取消權杖。

傳回

適用於

GetAnalysisResultAsync(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

AnalysisResult傳回填入 SemanticDiagnostics 由指定 analyzers 所產生之 ,從分析指定的 model 選擇性範圍設定為 filterSpan 。 視分析器的行為而定,透過完整編譯的分析來報告樹狀結構的一些診斷可能不存在。

public System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Diagnostics.AnalysisResult> GetAnalysisResultAsync (Microsoft.CodeAnalysis.SemanticModel model, Microsoft.CodeAnalysis.Text.TextSpan? filterSpan, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer> analyzers, System.Threading.CancellationToken cancellationToken);
member this.GetAnalysisResultAsync : Microsoft.CodeAnalysis.SemanticModel * Nullable<Microsoft.CodeAnalysis.Text.TextSpan> * System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Diagnostics.AnalysisResult>
Public Function GetAnalysisResultAsync (model As SemanticModel, filterSpan As Nullable(Of TextSpan), analyzers As ImmutableArray(Of DiagnosticAnalyzer), cancellationToken As CancellationToken) As Task(Of AnalysisResult)

參數

model
SemanticModel

語意模型,代表要分析的語法樹狀結構。

filterSpan
Nullable<TextSpan>

樹狀結構中要範圍分析的選擇性範圍。

analyzers
ImmutableArray<DiagnosticAnalyzer>

需要診斷的分析器。 所有指定的分析器都必須來自傳遞至 建構函式的分析 CompilationWithAnalyzers 器。

cancellationToken
CancellationToken

取消權杖。

傳回

適用於

GetAnalysisResultAsync(AdditionalText, Nullable<TextSpan>, ImmutableArray<DiagnosticAnalyzer>, CancellationToken)

Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs

AnalysisResult傳回填入 AdditionalFileDiagnostics 由指定 analyzers 所產生的 ,從分析指定的其他 file ,選擇性地限定為 filterSpan 。 針對這個 CompilationWithAnalyzers 實例,指定的 file 必須是 的 AdditionalFilesAnalysisOptions 。 視分析器的行為而定,透過完整編譯的分析報告檔案的某些診斷可能不存在。

public System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Diagnostics.AnalysisResult> GetAnalysisResultAsync (Microsoft.CodeAnalysis.AdditionalText file, Microsoft.CodeAnalysis.Text.TextSpan? filterSpan, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer> analyzers, System.Threading.CancellationToken cancellationToken);
member this.GetAnalysisResultAsync : Microsoft.CodeAnalysis.AdditionalText * Nullable<Microsoft.CodeAnalysis.Text.TextSpan> * System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Diagnostics.AnalysisResult>
Public Function GetAnalysisResultAsync (file As AdditionalText, filterSpan As Nullable(Of TextSpan), analyzers As ImmutableArray(Of DiagnosticAnalyzer), cancellationToken As CancellationToken) As Task(Of AnalysisResult)

參數

file
AdditionalText

要分析的其他檔案。

filterSpan
Nullable<TextSpan>

選擇性篩選範圍,以在 內 file 進行分析。

analyzers
ImmutableArray<DiagnosticAnalyzer>

需要診斷的分析器。 所有指定的分析器都必須來自傳遞至 建構函式的分析 CompilationWithAnalyzers 器。

cancellationToken
CancellationToken

取消權杖。

傳回

適用於

GetAnalysisResultAsync(SyntaxTree, 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

AnalysisResult傳回填入 SyntaxDiagnostics 由指定 analyzers 從分析指定的 tree 所產生的 。 視分析器的行為而定,透過完整編譯的分析來報告樹狀結構的一些診斷可能不存在。

public System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Diagnostics.AnalysisResult> GetAnalysisResultAsync (Microsoft.CodeAnalysis.SyntaxTree tree, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer> analyzers, System.Threading.CancellationToken cancellationToken);
member this.GetAnalysisResultAsync : Microsoft.CodeAnalysis.SyntaxTree * System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Diagnostics.AnalysisResult>
Public Function GetAnalysisResultAsync (tree As SyntaxTree, analyzers As ImmutableArray(Of DiagnosticAnalyzer), cancellationToken As CancellationToken) As Task(Of AnalysisResult)

參數

tree
SyntaxTree

要分析的語法樹狀結構。

analyzers
ImmutableArray<DiagnosticAnalyzer>

需要診斷的分析器。 所有指定的分析器都必須來自傳遞至 建構函式的分析 CompilationWithAnalyzers 器。

cancellationToken
CancellationToken

取消權杖。

傳回

適用於

GetAnalysisResultAsync(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

AnalysisResult傳回填入 SemanticDiagnostics 由所有 Analyzers 產生的 ,從分析指定的 model 選擇性範圍設定為 filterSpan 。 視分析器的行為而定,透過完整編譯的分析來報告樹狀結構的一些診斷可能不存在。

public System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Diagnostics.AnalysisResult> GetAnalysisResultAsync (Microsoft.CodeAnalysis.SemanticModel model, Microsoft.CodeAnalysis.Text.TextSpan? filterSpan, System.Threading.CancellationToken cancellationToken);
member this.GetAnalysisResultAsync : Microsoft.CodeAnalysis.SemanticModel * Nullable<Microsoft.CodeAnalysis.Text.TextSpan> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Diagnostics.AnalysisResult>
Public Function GetAnalysisResultAsync (model As SemanticModel, filterSpan As Nullable(Of TextSpan), cancellationToken As CancellationToken) As Task(Of AnalysisResult)

參數

model
SemanticModel

語意模型,代表要分析的語法樹狀結構。

filterSpan
Nullable<TextSpan>

樹狀結構中要範圍分析的選擇性範圍。

cancellationToken
CancellationToken

取消權杖。

傳回

適用於

GetAnalysisResultAsync(SyntaxTree, Nullable<TextSpan>, CancellationToken)

Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs

AnalysisResult傳回填入 SyntaxDiagnostics 由所有 Analyzers 產生的 ,從分析指定的 tree 選擇性範圍設定為 filterSpan 。 視分析器的行為而定,透過完整編譯的分析來報告樹狀結構的一些診斷可能不存在。

public System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Diagnostics.AnalysisResult> GetAnalysisResultAsync (Microsoft.CodeAnalysis.SyntaxTree tree, Microsoft.CodeAnalysis.Text.TextSpan? filterSpan, System.Threading.CancellationToken cancellationToken);
member this.GetAnalysisResultAsync : Microsoft.CodeAnalysis.SyntaxTree * Nullable<Microsoft.CodeAnalysis.Text.TextSpan> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Diagnostics.AnalysisResult>
Public Function GetAnalysisResultAsync (tree As SyntaxTree, filterSpan As Nullable(Of TextSpan), cancellationToken As CancellationToken) As Task(Of AnalysisResult)

參數

tree
SyntaxTree

要分析的語法樹狀結構。

filterSpan
Nullable<TextSpan>

選擇性篩選範圍,可在樹狀結構內進行分析。

cancellationToken
CancellationToken

取消權杖。

傳回

適用於

GetAnalysisResultAsync(AdditionalText, 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

AnalysisResult傳回填入 AdditionalFileDiagnostics 所產生之 analyzers 的 ,其會從分析指定的其他 file 。 針對這個 CompilationWithAnalyzers 實例,指定的 file 必須是 的 AdditionalFilesAnalysisOptions 。 視分析器的行為而定,透過完整編譯的分析報告檔案的某些診斷可能不存在。

public System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Diagnostics.AnalysisResult> GetAnalysisResultAsync (Microsoft.CodeAnalysis.AdditionalText file, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer> analyzers, System.Threading.CancellationToken cancellationToken);
member this.GetAnalysisResultAsync : Microsoft.CodeAnalysis.AdditionalText * System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Diagnostics.AnalysisResult>
Public Function GetAnalysisResultAsync (file As AdditionalText, analyzers As ImmutableArray(Of DiagnosticAnalyzer), cancellationToken As CancellationToken) As Task(Of AnalysisResult)

參數

file
AdditionalText

要分析的其他檔案。

analyzers
ImmutableArray<DiagnosticAnalyzer>

需要診斷的分析器。 所有指定的分析器都必須來自傳遞至 建構函式的分析 CompilationWithAnalyzers 器。

cancellationToken
CancellationToken

取消權杖。

傳回

適用於

GetAnalysisResultAsync(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

執行指定的 analyzers ,並傳回與所有診斷和遙測資訊對應的 AnalysisResult

public:
 System::Threading::Tasks::Task<Microsoft::CodeAnalysis::Diagnostics::AnalysisResult ^> ^ GetAnalysisResultAsync(System::Collections::Immutable::ImmutableArray<Microsoft::CodeAnalysis::Diagnostics::DiagnosticAnalyzer ^> analyzers, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Diagnostics.AnalysisResult> GetAnalysisResultAsync (System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer> analyzers, System.Threading.CancellationToken cancellationToken);
member this.GetAnalysisResultAsync : System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Diagnostics.AnalysisResult>
Public Function GetAnalysisResultAsync (analyzers As ImmutableArray(Of DiagnosticAnalyzer), cancellationToken As CancellationToken) As Task(Of AnalysisResult)

參數

analyzers
ImmutableArray<DiagnosticAnalyzer>

需要分析結果的分析器。 所有指定的分析器都必須來自傳遞至 建構函式的分析 CompilationWithAnalyzers 器。

cancellationToken
CancellationToken

取消權杖。

傳回

適用於

GetAnalysisResultAsync(AdditionalText, Nullable<TextSpan>, CancellationToken)

Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs

AnalysisResult 回填入 AdditionalFileDiagnostics 由所有 Analyzers 產生的 ,從分析指定的額外 file ,選擇性地範圍設定為 filterSpan 。 針對這個 CompilationWithAnalyzers 實例,指定的 file 必須是 的 AdditionalFilesAnalysisOptions 一部分。 視分析器的行為而定,透過分析完整編譯報告檔案的某些診斷可能不存在。

public System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Diagnostics.AnalysisResult> GetAnalysisResultAsync (Microsoft.CodeAnalysis.AdditionalText file, Microsoft.CodeAnalysis.Text.TextSpan? filterSpan, System.Threading.CancellationToken cancellationToken);
member this.GetAnalysisResultAsync : Microsoft.CodeAnalysis.AdditionalText * Nullable<Microsoft.CodeAnalysis.Text.TextSpan> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Diagnostics.AnalysisResult>
Public Function GetAnalysisResultAsync (file As AdditionalText, filterSpan As Nullable(Of TextSpan), cancellationToken As CancellationToken) As Task(Of AnalysisResult)

參數

file
AdditionalText

要分析的其他檔案。

filterSpan
Nullable<TextSpan>

要在 內分析的 file 選擇性篩選範圍。

cancellationToken
CancellationToken

取消權杖。

傳回

適用於

GetAnalysisResultAsync(SyntaxTree, 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

AnalysisResult傳回填入 SyntaxDiagnostics 由所有 Analyzers 產生的 ,從分析指定的 tree 。 視分析器的行為而定,透過分析完整編譯來報告樹狀結構的一些診斷可能不存在。

public System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Diagnostics.AnalysisResult> GetAnalysisResultAsync (Microsoft.CodeAnalysis.SyntaxTree tree, System.Threading.CancellationToken cancellationToken);
member this.GetAnalysisResultAsync : Microsoft.CodeAnalysis.SyntaxTree * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Diagnostics.AnalysisResult>
Public Function GetAnalysisResultAsync (tree As SyntaxTree, cancellationToken As CancellationToken) As Task(Of AnalysisResult)

參數

tree
SyntaxTree

要分析的語法樹狀結構。

cancellationToken
CancellationToken

取消權杖。

傳回

適用於

GetAnalysisResultAsync(AdditionalText, 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

AnalysisResult 回填入 AdditionalFileDiagnostics 由所有 Analyzers 產生的 ,從分析指定的額外 file 。 針對這個 CompilationWithAnalyzers 實例,指定的 file 必須是 的 AdditionalFilesAnalysisOptions 一部分。 視分析器的行為而定,透過分析完整編譯報告檔案的某些診斷可能不存在。

public System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Diagnostics.AnalysisResult> GetAnalysisResultAsync (Microsoft.CodeAnalysis.AdditionalText file, System.Threading.CancellationToken cancellationToken);
member this.GetAnalysisResultAsync : Microsoft.CodeAnalysis.AdditionalText * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Diagnostics.AnalysisResult>
Public Function GetAnalysisResultAsync (file As AdditionalText, cancellationToken As CancellationToken) As Task(Of AnalysisResult)

參數

file
AdditionalText

要分析的其他檔案。

cancellationToken
CancellationToken

取消權杖。

傳回

適用於

GetAnalysisResultAsync(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

執行所有 Analyzers ,並傳回與所有診斷和遙測資訊對應的 AnalysisResult

public:
 System::Threading::Tasks::Task<Microsoft::CodeAnalysis::Diagnostics::AnalysisResult ^> ^ GetAnalysisResultAsync(System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Diagnostics.AnalysisResult> GetAnalysisResultAsync (System.Threading.CancellationToken cancellationToken);
member this.GetAnalysisResultAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Diagnostics.AnalysisResult>
Public Function GetAnalysisResultAsync (cancellationToken As CancellationToken) As Task(Of AnalysisResult)

參數

cancellationToken
CancellationToken

傳回

適用於