共用方式為


SyntaxTree.GetDiagnostics 方法

定義

多載

GetDiagnostics(CancellationToken)

取得語法樹狀結構中所有診斷的清單。 此方法不會根據#pragmas和編譯器選項來篩選診斷,例如 nowarn、warnaserror 等。

GetDiagnostics(SyntaxTrivia)

取得與 Trivia 相關聯的所有診斷清單。 此方法不會根據#pragmas和編譯器選項來篩選診斷,例如 nowarn、warnaserror 等。

GetDiagnostics(SyntaxNodeOrToken)

取得子樹狀結構中所有診斷的清單,該子樹狀結構中具有指定節點做為其根目錄,或與權杖及其相關 Trivia 相關聯。 此方法不會根據#pragmas和編譯器選項來篩選診斷,例如 nowarn、warnaserror 等。

GetDiagnostics(SyntaxNode)

取得子樹狀結構中具有指定節點做為其根目錄的所有診斷清單。 此方法不會根據#pragmas和編譯器選項來篩選診斷,例如 nowarn、warnaserror 等。

GetDiagnostics(SyntaxToken)

取得與權杖和任何相關 Trivia 相關聯的所有診斷清單。 此方法不會根據#pragmas和編譯器選項來篩選診斷,例如 nowarn、warnaserror 等。

GetDiagnostics(CancellationToken)

Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs

取得語法樹狀結構中所有診斷的清單。 此方法不會根據#pragmas和編譯器選項來篩選診斷,例如 nowarn、warnaserror 等。

public abstract System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Diagnostic> GetDiagnostics (System.Threading.CancellationToken cancellationToken = default);
abstract member GetDiagnostics : System.Threading.CancellationToken -> seq<Microsoft.CodeAnalysis.Diagnostic>
Public MustOverride Function GetDiagnostics (Optional cancellationToken As CancellationToken = Nothing) As IEnumerable(Of Diagnostic)

參數

cancellationToken
CancellationToken

傳回

適用於

GetDiagnostics(SyntaxTrivia)

Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs

取得與 Trivia 相關聯的所有診斷清單。 此方法不會根據#pragmas和編譯器選項來篩選診斷,例如 nowarn、warnaserror 等。

public:
 abstract System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::Diagnostic ^> ^ GetDiagnostics(Microsoft::CodeAnalysis::SyntaxTrivia trivia);
public abstract System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Diagnostic> GetDiagnostics (Microsoft.CodeAnalysis.SyntaxTrivia trivia);
abstract member GetDiagnostics : Microsoft.CodeAnalysis.SyntaxTrivia -> seq<Microsoft.CodeAnalysis.Diagnostic>
Public MustOverride Function GetDiagnostics (trivia As SyntaxTrivia) As IEnumerable(Of Diagnostic)

參數

trivia
SyntaxTrivia

傳回

適用於

GetDiagnostics(SyntaxNodeOrToken)

Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs

取得子樹狀結構中所有診斷的清單,該子樹狀結構中具有指定節點做為其根目錄,或與權杖及其相關 Trivia 相關聯。 此方法不會根據#pragmas和編譯器選項來篩選診斷,例如 nowarn、warnaserror 等。

public:
 abstract System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::Diagnostic ^> ^ GetDiagnostics(Microsoft::CodeAnalysis::SyntaxNodeOrToken nodeOrToken);
public abstract System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Diagnostic> GetDiagnostics (Microsoft.CodeAnalysis.SyntaxNodeOrToken nodeOrToken);
abstract member GetDiagnostics : Microsoft.CodeAnalysis.SyntaxNodeOrToken -> seq<Microsoft.CodeAnalysis.Diagnostic>
Public MustOverride Function GetDiagnostics (nodeOrToken As SyntaxNodeOrToken) As IEnumerable(Of Diagnostic)

參數

nodeOrToken
SyntaxNodeOrToken

傳回

適用於

GetDiagnostics(SyntaxNode)

Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs

取得子樹狀結構中具有指定節點做為其根目錄的所有診斷清單。 此方法不會根據#pragmas和編譯器選項來篩選診斷,例如 nowarn、warnaserror 等。

public:
 abstract System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::Diagnostic ^> ^ GetDiagnostics(Microsoft::CodeAnalysis::SyntaxNode ^ node);
public abstract System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Diagnostic> GetDiagnostics (Microsoft.CodeAnalysis.SyntaxNode node);
abstract member GetDiagnostics : Microsoft.CodeAnalysis.SyntaxNode -> seq<Microsoft.CodeAnalysis.Diagnostic>
Public MustOverride Function GetDiagnostics (node As SyntaxNode) As IEnumerable(Of Diagnostic)

參數

node
SyntaxNode

傳回

適用於

GetDiagnostics(SyntaxToken)

Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs
Source:
SyntaxTree.cs

取得與權杖和任何相關 Trivia 相關聯的所有診斷清單。 此方法不會根據#pragmas和編譯器選項來篩選診斷,例如 nowarn、warnaserror 等。

public:
 abstract System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::Diagnostic ^> ^ GetDiagnostics(Microsoft::CodeAnalysis::SyntaxToken token);
public abstract System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Diagnostic> GetDiagnostics (Microsoft.CodeAnalysis.SyntaxToken token);
abstract member GetDiagnostics : Microsoft.CodeAnalysis.SyntaxToken -> seq<Microsoft.CodeAnalysis.Diagnostic>
Public MustOverride Function GetDiagnostics (token As SyntaxToken) As IEnumerable(Of Diagnostic)

參數

token
SyntaxToken

傳回

適用於