Method FindDeclaration
FindDeclaration(SemanticModel, Point, bool)
When implemented by a class, finds the declaration node at given position.
ISymbol FindDeclaration(SemanticModel model, Point position, bool includeCandidates = true)
Parameters
model
SemanticModelSemanticModel representing source code.
position
PointSpecifies position to find node.
includeCandidates
boolSpecifies whether candidate symbols can be considered.
Returns
- ISymbol
Microsoft.CodeAnalysis.ISymbol
node representing declaration.