SemanticModel.GetTopmostNodeForDiagnosticAnalysis(ISymbol, SyntaxNode) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取其声明语法引用之一的符号和语法,并返回语法分析器使用的最顶层语法节点。
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