26 references to Create
Microsoft.CodeAnalysis.Workspaces (26)
FindSymbols\Declarations\DeclarationFinder_AllDeclarations.cs (1)
66var lazyCompilation = AsyncLazy.Create(static (project, cancellationToken) =>
FindSymbols\FindReferences\DependentTypeFinder_ProjectIndex.cs (1)
38project.State, p => AsyncLazy.Create(
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)
547var newAsyncLazy = AsyncLazy.Create(static async (arg, cancellationToken) =>
Workspace\Solution\ProjectState.cs (9)
91_lazyChecksums = AsyncLazy.Create(static (self, cancellationToken) => self.ComputeChecksumsAsync(cancellationToken), arg: this); 92_lazyContentHashToDocumentId = AsyncLazy.Create(static (self, cancellationToken) => self.ComputeContentHashToDocumentIdAsync(cancellationToken), arg: this); 123_lazyLatestDocumentVersion = AsyncLazy.Create(static (self, c) => ComputeLatestDocumentVersionAsync(self.DocumentStates, self.AdditionalDocumentStates, c), arg: this); 124_lazyLatestDocumentTopLevelChangeVersion = AsyncLazy.Create(static (self, c) => ComputeLatestDocumentTopLevelChangeVersionAsync(self.DocumentStates, self.AdditionalDocumentStates, c), arg: this); 132_lazyChecksums = AsyncLazy.Create(static (self, cancellationToken) => self.ComputeChecksumsAsync(cancellationToken), arg: this); 133_lazyContentHashToDocumentId = AsyncLazy.Create(static (self, cancellationToken) => self.ComputeContentHashToDocumentIdAsync(cancellationToken), arg: this); 231return AsyncLazy.Create(static (arg, cancellationToken) => 237return AsyncLazy.Create(static (arg, cancellationToken) => 1074dependentDocumentVersion = AsyncLazy.Create(
Workspace\Solution\SolutionCompilationState.cs (1)
74_lazyChecksums = AsyncLazy.Create(static async (self, cancellationToken) =>
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (3)
1020AsyncLazy.Create(static (arg, c) => 1059AsyncLazy.Create(static (arg, c) => 1097AsyncLazy.Create(static (arg, c) =>
Workspace\Solution\SolutionCompilationState.SkeletonReferenceCache.cs (1)
211compilation => AsyncLazy.Create(static (arg, cancellationToken) =>
Workspace\Solution\SolutionCompilationState.WithFrozenSourceGeneratedDocumentsCompilationTracker.cs (1)
156AsyncLazy.Create(static (arg, c) =>
Workspace\Solution\SolutionCompilationState_Checksum.cs (1)
83checksums = AsyncLazy.Create(static async (arg, cancellationToken) =>
Workspace\Solution\SolutionState.cs (1)
91_lazyChecksums = AsyncLazy.Create(static (self, c) =>
Workspace\Solution\SolutionState_Checksum.cs (1)
82checksums = AsyncLazy.Create(
Workspace\Solution\TextDocumentState.cs (1)
45_lazyChecksums = AsyncLazy.Create(static (self, cancellationToken) => self.ComputeChecksumsAsync(cancellationToken), arg: this);