Udostępnij za pośrednictwem


SyntaxTree.GetDiagnostics Method

Definition

Overloads

GetDiagnostics(CancellationToken)

Gets a list of all the diagnostics in the syntax tree. This method does not filter diagnostics based on #pragmas and compiler options like nowarn, warnaserror etc.

GetDiagnostics(SyntaxTrivia)

Gets a list of all the diagnostics associated with the trivia. This method does not filter diagnostics based on #pragmas and compiler options like nowarn, warnaserror etc.

GetDiagnostics(SyntaxNodeOrToken)

Gets a list of all the diagnostics in either the sub tree that has the specified node as its root or associated with the token and its related trivia. This method does not filter diagnostics based on #pragmas and compiler options like nowarn, warnaserror etc.

GetDiagnostics(SyntaxNode)

Gets a list of all the diagnostics in the sub tree that has the specified node as its root. This method does not filter diagnostics based on #pragmas and compiler options like nowarn, warnaserror etc.

GetDiagnostics(SyntaxToken)

Gets a list of all the diagnostics associated with the token and any related trivia. This method does not filter diagnostics based on #pragmas and compiler options like nowarn, warnaserror etc.

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
Source:
SyntaxTree.cs

Gets a list of all the diagnostics in the syntax tree. This method does not filter diagnostics based on #pragmas and compiler options like nowarn, warnaserror etc.

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)

Parameters

cancellationToken
CancellationToken

Returns

Applies to

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
Source:
SyntaxTree.cs

Gets a list of all the diagnostics associated with the trivia. This method does not filter diagnostics based on #pragmas and compiler options like nowarn, warnaserror etc.

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)

Parameters

trivia
SyntaxTrivia

Returns

Applies to

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
Source:
SyntaxTree.cs

Gets a list of all the diagnostics in either the sub tree that has the specified node as its root or associated with the token and its related trivia. This method does not filter diagnostics based on #pragmas and compiler options like nowarn, warnaserror etc.

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)

Parameters

nodeOrToken
SyntaxNodeOrToken

Returns

Applies to

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
Source:
SyntaxTree.cs

Gets a list of all the diagnostics in the sub tree that has the specified node as its root. This method does not filter diagnostics based on #pragmas and compiler options like nowarn, warnaserror etc.

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)

Parameters

node
SyntaxNode

Returns

Applies to

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
Source:
SyntaxTree.cs

Gets a list of all the diagnostics associated with the token and any related trivia. This method does not filter diagnostics based on #pragmas and compiler options like nowarn, warnaserror etc.

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)

Parameters

token
SyntaxToken

Returns

Applies to