25 references to Id
Microsoft.CodeAnalysis.Features (2)
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (1)
231var updatedDocuments = temporaryProjectInfo.Documents.Select(d => d.Id == temporaryDocumentId ? d.WithTextLoader(newLoader) : d);
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (1)
265if (!metadataWorkspace.CurrentSolution.ContainsDocument(documentInfo.Id))
Microsoft.CodeAnalysis.Workspaces (21)
Workspace\AdhocWorkspace.cs (1)
143return this.CurrentSolution.GetDocument(documentInfo.Id);
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (10)
185_sourceTextContainersToDocumentIds = _sourceTextContainersToDocumentIds.Add(textContainer, documentInfo.Id); 195_project._projectSystemProjectFactory.AddDocumentToDocumentsNotFromFiles_NoLock(documentInfo.Id); 197w.OnDocumentOpened(documentInfo.Id, textContainer); 213var documentId = documentInfo.Id; 313if (_documentsAddedInBatch[i].Id == documentId) 374if (_documentsAddedInBatch[i].Id == documentId) 418if (!_documentsAddedInBatch.Any(d => d.Id == documentId)) 596documentIds: documentsAddedInBatch.Select(d => d.Id)); 603var textContainer = getContainer(documentInfo.Id); 606documentsToOpen.Add((documentInfo.Id, textContainer));
Workspace\Solution\SolutionCompilationState.cs (3)
644if (oldDocumentStates.TryGetState(newDocumentInfo.Id, out var oldDocumentState)) 660var newDocumentIdSet = newDocumentInfos.Select(static d => d.Id).ToSet(); 1791documentInfos.GroupBy(d => d.Id.ProjectId).Select(g =>
Workspace\Solution\TextDocumentStates.cs (2)
76: this([.. infos.Select(info => info.Id)], 77infos.ToImmutableSortedDictionary(info => info.Id, stateConstructor, DocumentIdComparer.Instance),
Workspace\Workspace.cs (5)
1040WorkspaceChangeKind.DocumentAdded, documentId: documentInfo.Id); 1055foreach (var projectId in data.documentInfos.Select(i => i.Id.ProjectId).Distinct()) 1065var documentId = newDocumentInfo.Id; 1361var documentId = documentInfo.Id; 1399var documentId = documentInfo.Id;
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\MSBuildWorkspace.cs (2)
462var project = this.CurrentSolution.GetRequiredProject(info.Id.ProjectId); 492this.SaveDocumentText(info.Id, fullPath, text, text.Encoding ?? Encoding.UTF8);