23 references to Create
Microsoft.CodeAnalysis.Workspaces (23)
Diagnostics\Extensions.cs (1)
472static project => AsyncLazy.Create(
FindSymbols\Declarations\DeclarationFinder_AllDeclarations.cs (1)
66var lazyCompilation = AsyncLazy.Create(static (project, cancellationToken) =>
FindSymbols\FindReferences\DependentTypeFinder_ProjectIndex.cs (1)
51tuple = new((checksum, AsyncLazy.Create(CreateIndexAsync, project)));
FindSymbols\FindReferences\FindReferenceCache.cs (1)
30var lazy = s_cache.GetValue(document, static document => AsyncLazy.Create(ComputeCacheAsync, document));
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (1)
161id => AsyncLazy.Create(static (arg, c) =>
FindSymbols\SymbolTree\SymbolTreeInfo_Source.cs (1)
74static p => AsyncLazy.Create(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy.cs (1)
29=> Create(
Workspace\Solution\Document.cs (1)
602var newAsyncLazy = AsyncLazy.Create(static async (arg, cancellationToken) =>
Workspace\Solution\ProjectState.cs (7)
119_lazyLatestDocumentVersion = AsyncLazy.Create(static async (self, c) => await ComputeLatestDocumentVersionAsync(self.DocumentStates, self.AdditionalDocumentStates, c).ConfigureAwait(false), arg: this); 120_lazyLatestDocumentTopLevelChangeVersion = AsyncLazy.Create(static (self, c) => ComputeLatestDocumentTopLevelChangeVersionAsync(self.DocumentStates, self.AdditionalDocumentStates, c), arg: this); 162AsyncLazy.Create(static (self, cancellationToken) => self.ComputeChecksumsAsync(cancellationToken), arg: this), 178AsyncLazy.Create(static (self, cancellationToken) => self.ComputeContentHashToDocumentIdAsync(cancellationToken), arg: this), 256return AsyncLazy.Create(static (arg, cancellationToken) => 262return AsyncLazy.Create(static (arg, cancellationToken) => 1099dependentDocumentVersion = AsyncLazy.Create(
Workspace\Solution\SolutionCompilationState.cs (1)
75_lazyChecksums = AsyncLazy.Create(static async (self, cancellationToken) =>
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (2)
1029AsyncLazy.Create(static (arg, c) => 1068AsyncLazy.Create(static (arg, c) =>
Workspace\Solution\SolutionCompilationState.SkeletonReferenceCache.cs (1)
211compilation => AsyncLazy.Create(static (arg, cancellationToken) =>
Workspace\Solution\SolutionCompilationState_Checksum.cs (1)
81checksums = AsyncLazy.Create(static async (arg, cancellationToken) =>
Workspace\Solution\SolutionState.cs (1)
93_lazyChecksums = AsyncLazy.Create(static (self, c) =>
Workspace\Solution\SolutionState_Checksum.cs (1)
74checksums = AsyncLazy.Create(
Workspace\Solution\TextDocumentState.cs (1)
45_lazyChecksums = AsyncLazy.Create(static (self, cancellationToken) => self.ComputeChecksumsAsync(cancellationToken), arg: this);