src/compiler/StarkPlatform.Compiler.Workspaces/FindSymbols/FindReferences/Finders/AbstractReferenceFinder.cs
/// <summary>
/// Finds all the documents in the provided project that contain the requested string
/// values
/// </summary>
Finds all the documents in the provided project that contain the requested string
values
Finds all the documents in the provided project that contain the requested string values
protected Task<ImmutableArray<Document>> FindDocumentsAsync(Project project, IImmutableSet<Document> documents, CancellationToken cancellationToken, params string[] values)
        {
            return FindDocumentsAsync(project, documents, async (d, c) =>
            {
                var info = await SyntaxTreeIndex.GetIndexAsync(d, c).ConfigureAwait(false);
                foreach (var value in values)
                {
                    if (!info.ProbablyContainsIdentifier(value))
                    {
                        return false;
                    }
                }
                return true;
            }, cancellationToken);
        }
protected Task < ImmutableArray < Document > > FindDocumentsAsync ( Project project , IImmutableSet < Document > documents , CancellationToken cancellationToken , params string [ ] values ) { return FindDocumentsAsync ( project , documents , async ( d , c ) => { var info = await SyntaxTreeIndex . GetIndexAsync ( d , c ) . ConfigureAwait ( false ) ; foreach ( var value in values ) { if ( ! info . ProbablyContainsIdentifier ( value ) ) { return false ; } } return true ; } , cancellationToken ) ; }
Finds all the documents in the provided project that contain the requested string
values
Finds all the documents in the provided project that contain the requested string values
project
Project
documents
IImmutableSet<Document>
cancellationToken
CancellationToken