3 references to GetOrAdd
Microsoft.CodeAnalysis.Workspaces (3)
LinkedFileDiffMerging\LinkedFileDiffMergingSession.cs (1)
37var newDocumentsAndHashes = filePathToNewDocumentsAndHashes.GetOrAdd(filePath, static (_, capacity) => DocumentAndHashBuilder.GetInstance(capacity), relatedDocumentIds.Length);
Workspace\Solution\Project.cs (1)
269return idMap.GetOrAdd(documentId, tryCreate, arg);
Workspace\Solution\Solution.cs (1)
157return _projectIdToProjectMap.GetOrAdd(projectId, s_createProjectFunction, this);