Method FindReferences
FindReferences(Point)
Locates and highlights references at given position in the text.
public virtual void FindReferences(Point position)
Parameters
position
PointSpecifies position to find declaration.
FindReferences(ISyntaxNode, ISyntaxNodes)
Locates all references to the node in the text.
public virtual int FindReferences(ISyntaxNode node, ISyntaxNodes references)
Parameters
node
ISyntaxNodeSpecifies
ISyntaxNode
to find references.references
ISyntaxNodesRetrieves references to node.
Returns
- int
Number of found references.
FindReferences(Point, IRangeList, bool)
Locates declaration at given position and finds all references to this declaration in the text.
public virtual int FindReferences(Point position, IRangeList references, bool allDocuments = false)
Parameters
position
PointSpecifies position to find declaration.
references
IRangeListRetrieves references to found declaration.
allDocuments
boolSpecifies if search needs to process all documents in the solution
Returns
- int
Number of found references.