8 references to FromResult
Microsoft.CodeAnalysis.Workspaces (8)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (2)
59return ValueTaskFactory.FromResult(Array.Empty<T>()); 79return ValueTaskFactory.FromResult(result);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\AsyncSymbolVisitor`1.cs (2)
15=> symbol?.Accept(this) ?? ValueTaskFactory.FromResult(DefaultResult); 18=> ValueTaskFactory.FromResult(DefaultResult);
SymbolSearch\ISymbolSearchService.cs (3)
159=> ValueTaskFactory.FromResult(ImmutableArray<PackageResult>.Empty); 162=> ValueTaskFactory.FromResult(ImmutableArray<PackageWithAssemblyResult>.Empty); 165=> ValueTaskFactory.FromResult(ImmutableArray<ReferenceAssemblyResult>.Empty);
Workspace\IsolatedAnalyzerReferenceSet.cs (1)
45return ValueTaskFactory.FromResult(references);