Table of Contents

Method FindReferencesAsync

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

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

symbol ISymbol

Specifies Microsoft.CodeAnalysis.ISymbol to find references.

allDocuments bool

Specifies if search needs to process all documents in the solution

cancellationToken CancellationToken

Cancellation token

Returns

Task<IEnumerable<ReferencedSymbol>>

References to node.