SyntaxTree.GetDiagnostics 方法

定义

重载

GetDiagnostics(CancellationToken)

获取语法树中所有诊断的列表。 此方法不会基于 #pragmas 和编译器选项(如 nowarn、warnaserror 等)筛选诊断。

GetDiagnostics(SyntaxTrivia)

获取与琐事关联的所有诊断的列表。 此方法不会基于 #pragmas 和编译器选项(如 nowarn、warnaserror 等)筛选诊断。

GetDiagnostics(SyntaxNodeOrToken)

获取子树中所有诊断的列表,该子树将指定节点作为其根节点或与令牌及其相关琐事相关联。 此方法不会基于 #pragmas 和编译器选项(如 nowarn、warnaserror 等)筛选诊断。

GetDiagnostics(SyntaxNode)

获取子树中具有指定节点作为其根目录的所有诊断的列表。 此方法不会基于 #pragmas 和编译器选项(如 nowarn、warnaserror 等)筛选诊断。

GetDiagnostics(SyntaxToken)

获取与令牌和任何相关琐事关联的所有诊断的列表。 此方法不会基于 #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

获取与琐事关联的所有诊断的列表。 此方法不会基于 #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

获取子树中所有诊断的列表,该子树将指定节点作为其根节点或与令牌及其相关琐事相关联。 此方法不会基于 #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

获取与令牌和任何相关琐事关联的所有诊断的列表。 此方法不会基于 #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

返回

适用于