public async Task <IEnumerable <ISymbol> > FindAsync( SearchQuery query, AsyncLazy <IAssemblySymbol> lazyAssembly, SymbolFilter filter, CancellationToken cancellationToken) { return(SymbolFinder.FilterByCriteria( await FindAsyncWorker(query, lazyAssembly, cancellationToken).ConfigureAwait(false), filter)); }
public async Task <ImmutableArray <ISymbol> > FindAsync( SearchQuery query, AsyncLazy <IAssemblySymbol> lazyAssembly, SymbolFilter filter, CancellationToken cancellationToken) { // All entrypoints to this function are Find functions that are only searching // for specific strings (i.e. they never do a custom search). Debug.Assert(query.Kind != SearchKind.Custom); return(SymbolFinder.FilterByCriteria( await FindAsyncWorker(query, lazyAssembly, cancellationToken).ConfigureAwait(false), filter)); }