Method FindReferencesAsync
FindReferencesAsync(ISymbol, bool, CancellationToken)
When implemented by a class, locates all references to the symbol in the text.
Task<IEnumerable<ReferencedSymbol>> FindReferencesAsync(ISymbol symbol, bool allDocuments, CancellationToken cancellationToken)
Parameters
symbolISymbolSpecifies
Microsoft.CodeAnalysis.ISymbolto find references.allDocumentsboolSpecifies if search needs to process all documents in the solution
cancellationTokenCancellationTokenCancellation token
Returns
- Task<IEnumerable<ReferencedSymbol>>
References to node.