Share via


VisualBasicSyntaxTree.GetDiagnostics Method

Definition

Overloads

GetDiagnostics(SyntaxNode)

Gets a list of all the diagnostics in the sub tree that has the specified node as its root.

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.

GetDiagnostics(SyntaxToken)

Gets a list of all the diagnostics associated with the token and any related trivia.

GetDiagnostics(SyntaxTrivia)

Gets a list of all the diagnostics associated with the trivia.

GetDiagnostics(CancellationToken)

Gets a list of all the diagnostics in the syntax tree.

GetDiagnostics(SyntaxNode)

Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb

Gets a list of all the diagnostics in the sub tree that has the specified node as its root.

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

Parameters

node
SyntaxNode

Returns

Remarks

This method does not filter diagnostics based on compiler options like /nowarn, /warnaserror etc.

Applies to

GetDiagnostics(SyntaxNodeOrToken)

Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb

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.

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

Parameters

nodeOrToken
SyntaxNodeOrToken

Returns

Remarks

This method does not filter diagnostics based on compiler options like /nowarn, /warnaserror etc.

Applies to

GetDiagnostics(SyntaxToken)

Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb

Gets a list of all the diagnostics associated with the token and any related trivia.

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

Parameters

token
SyntaxToken

Returns

Remarks

This method does not filter diagnostics based on compiler options like /nowarn, /warnaserror etc.

Applies to

GetDiagnostics(SyntaxTrivia)

Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb

Gets a list of all the diagnostics associated with the trivia.

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

Parameters

trivia
SyntaxTrivia

Returns

Remarks

This method does not filter diagnostics based on compiler options like /nowarn, /warnaserror etc.

Applies to

GetDiagnostics(CancellationToken)

Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb
Source:
VisualBasicSyntaxTree.vb

Gets a list of all the diagnostics in the syntax tree.

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

Parameters

cancellationToken
CancellationToken

Returns

Remarks

This method does not filter diagnostics based on compiler options like /nowarn, /warnaserror etc.

Applies to