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
SemanticModelnode
SyntaxNodeincludeCandidates
boolpos
int
Returns
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
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.