共用方式為


SemanticModel.GetTopmostNodeForDiagnosticAnalysis(ISymbol, SyntaxNode) 方法

定義

取得其中一個宣告語法參考的符號和語法,並傳回語法分析器要使用的最上層語法節點。

protected public:
 virtual Microsoft::CodeAnalysis::SyntaxNode ^ GetTopmostNodeForDiagnosticAnalysis(Microsoft::CodeAnalysis::ISymbol ^ symbol, Microsoft::CodeAnalysis::SyntaxNode ^ declaringSyntax);
protected internal virtual Microsoft.CodeAnalysis.SyntaxNode GetTopmostNodeForDiagnosticAnalysis (Microsoft.CodeAnalysis.ISymbol symbol, Microsoft.CodeAnalysis.SyntaxNode declaringSyntax);
abstract member GetTopmostNodeForDiagnosticAnalysis : Microsoft.CodeAnalysis.ISymbol * Microsoft.CodeAnalysis.SyntaxNode -> Microsoft.CodeAnalysis.SyntaxNode
override this.GetTopmostNodeForDiagnosticAnalysis : Microsoft.CodeAnalysis.ISymbol * Microsoft.CodeAnalysis.SyntaxNode -> Microsoft.CodeAnalysis.SyntaxNode
Protected Friend Overridable Function GetTopmostNodeForDiagnosticAnalysis (symbol As ISymbol, declaringSyntax As SyntaxNode) As SyntaxNode

參數

symbol
ISymbol
declaringSyntax
SyntaxNode

傳回

適用於