private async Task FindReferenceAssemblyTypeReferencesAsync( ISymbolSearchService searchService, List <Reference> allReferences, TSimpleNameSyntax nameNode, string name, int arity, bool isAttributeSearch, CancellationToken cancellationToken) { cancellationToken.ThrowIfCancellationRequested(); var results = await searchService.FindReferenceAssembliesWithTypeAsync( name, arity, cancellationToken).ConfigureAwait(false); if (results.IsDefault) { return; } var project = _document.Project; var projectId = project.Id; var workspace = project.Solution.Workspace; foreach (var result in results) { cancellationToken.ThrowIfCancellationRequested(); await HandleReferenceAssemblyReferenceAsync( allReferences, nameNode, project, isAttributeSearch, result, weight : allReferences.Count, cancellationToken : cancellationToken).ConfigureAwait(false); } }
public async Task <ImmutableArray <ReferenceAssemblyWithTypeResult> > FindReferenceAssembliesWithTypeAsync( string name, int arity) { var result = await _symbolSearchService.FindReferenceAssembliesWithTypeAsync( name, arity, _cancellationToken).ConfigureAwait(false); return(result); }
public Task <IList <ReferenceAssemblyWithTypeResult> > FindReferenceAssembliesWithTypeAsync( string name, int arity, CancellationToken cancellationToken) { return(_symbolSearchService.FindReferenceAssembliesWithTypeAsync( name, arity, cancellationToken)); }
public Task <ImmutableArray <ReferenceAssemblyWithTypeResult> > FindReferenceAssembliesWithTypeAsync( string name, int arity) { return(_symbolSearchService.FindReferenceAssembliesWithTypeAsync( name, arity, _cancellationToken)); }