SemanticModel.GetTopmostNodeForDiagnosticAnalysis(ISymbol, SyntaxNode) Method

Definition

Takes a Symbol and syntax for one of its declaring syntax reference and returns the topmost syntax node to be used by syntax analyzer.

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

Parameters

symbol
ISymbol
declaringSyntax
SyntaxNode

Returns

Applies to