Table of Contents

Method FindDeclaration

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

FindDeclaration(SemanticModel, SyntaxNode, bool, int)

protected virtual ISymbol FindDeclaration(SemanticModel model, SyntaxNode node, bool includeCandidates = true, int pos = -1)

Parameters

model SemanticModel
node SyntaxNode
includeCandidates bool
pos int

Returns

ISymbol

FindDeclaration(SemanticModel, Point, bool)

When implemented by a class, finds the declaration node at given position.

public virtual 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.