Table of Contents

Method FindDeclaration

Namespace
Alternet.Syntax.Parsers.Roslyn
Assembly
Alternet.Syntax.Parsers.Roslyn.v9.dll

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 SemanticModel

SemanticModel representing source code.

position Point

Specifies position to find node.

includeCandidates bool

Specifies whether candidate symbols can be considered.

Returns

ISymbol

Microsoft.CodeAnalysis.ISymbol node representing declaration.