40 references to DocumentIds
dotnet-format (2)
CodeFormatter.cs (2)
173var totalFileCount = solution.Projects.Sum(project => project.DocumentIds.Count); 203projectFileCount += project.DocumentIds.Count;
Microsoft.Analyzers.Extra.Tests (1)
Resources\RoslynTestUtils.cs (1)
494foreach (var documentId in project.DocumentIds)
Microsoft.Analyzers.Local.Tests (1)
Resources\RoslynTestUtils.cs (1)
495foreach (var documentId in project.DocumentIds)
Microsoft.CodeAnalysis.Features (11)
Copilot\ICopilotChangeAnalysisService.cs (1)
118var projectDocumentCount = newDocument.Project.DocumentIds.Count;
DesignerAttribute\DesignerAttributeDiscoveryService.cs (1)
237foreach (var documentId in project.DocumentIds)
Diagnostics\IDiagnosticAnalyzerService.cs (1)
53/// then diagnostics will be returned for <see cref="Project.DocumentIds"/> and <see cref="Project.AdditionalDocumentIds"/>.</param>
Diagnostics\Service\DiagnosticAnalyzerService_CoreAnalyze.cs (1)
81var count = documentAnalysisScope != null ? 1 : project.DocumentIds.Count + 1;
Diagnostics\Service\DiagnosticAnalyzerService_ForceCodeAnalysisDiagnostics.cs (1)
49project, [.. project.DocumentIds, .. project.AdditionalDocumentIds, .. sourceGeneratorDocuments.Select(d => d.Id)],
Diagnostics\Service\DiagnosticAnalyzerService_ProduceProjectDiagnostics.cs (1)
79documentIds.IsDefault ? [.. project.DocumentIds, .. project.AdditionalDocumentIds] : documentIds,
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (4)
383foreach (var documentId in project.DocumentIds) 667count += project.DocumentIds.Count; 693foreach (var documentId in project.DocumentIds) 711foreach (var documentId in project.DocumentIds)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingSemanticChangeProcessor.cs (1)
435foreach (var documentId in project.DocumentIds)
Microsoft.CodeAnalysis.Workspaces (18)
CodeActions\CodeAction_Cleanup.cs (1)
82.Concat(solutionChanges.GetAddedProjects().SelectMany(p => p.DocumentIds))
CodeFixesAndRefactorings\FixAllLogger.cs (2)
82m[DocumentCount] = fixAllState.Project.DocumentIds.Count; 86m[DocumentCount] = fixAllState.Solution.Projects.Sum(p => p.DocumentIds.Count);
Diagnostics\GeneratorDiagnosticsPlaceholderAnalyzer.cs (1)
43textDocument.Id == project.DocumentIds[0])
Editing\SymbolEditor.cs (1)
86foreach (var id in project.DocumentIds)
FindSymbols\FindLiterals\FindLiteralsSearchEngine.cs (1)
87var count = _solution.Projects.SelectMany(p => p.DocumentIds).Count();
Workspace\Solution\Project.cs (1)
198public IEnumerable<Document> Documents => DocumentIds.Select(GetDocument)!;
Workspace\Solution\ProjectChanges.cs (10)
44/// Get <see cref="DocumentId"/>s of added documents in the order they appear in <see cref="Project.DocumentIds"/> of the <see cref="NewProject"/>. 50/// Get <see cref="DocumentId"/>s of added dditional documents in the order they appear in <see cref="Project.DocumentIds"/> of <see cref="NewProject"/>. 56/// Get <see cref="DocumentId"/>s of added analyzer config documents in the order they appear in <see cref="Project.DocumentIds"/> of <see cref="NewProject"/>. 63/// in the order they appear in <see cref="Project.DocumentIds"/> of <see cref="NewProject"/>. 69/// Get changed documents in the order they appear in <see cref="Project.DocumentIds"/> of <see cref="NewProject"/>. 81/// in the order they appear in <see cref="Project.DocumentIds"/> of <see cref="NewProject"/>. 88/// in the order they appear in <see cref="Project.DocumentIds"/> of <see cref="NewProject"/>. 94/// Get <see cref="DocumentId"/>s of removed documents in the order they appear in <see cref="Project.DocumentIds"/> of <see cref="OldProject"/>. 100/// Get <see cref="DocumentId"/>s of removed additional documents in the order they appear in <see cref="Project.DocumentIds"/> of <see cref="OldProject"/>. 106/// Get <see cref="DocumentId"/>s of removed analyzer config documents in the order they appear in <see cref="Project.DocumentIds"/> of <see cref="OldProject"/>.
Workspace\Workspace.cs (1)
306addedDocumentIds.AddRange(addedProject.DocumentIds);
Microsoft.Gen.BuildMetadata.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
536foreach (var documentId in project.DocumentIds)
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
536foreach (var documentId in project.DocumentIds)
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
536foreach (var documentId in project.DocumentIds)
Microsoft.Gen.Logging.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
536foreach (var documentId in project.DocumentIds)
Microsoft.Gen.MetadataExtractor.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
536foreach (var documentId in project.DocumentIds)
Microsoft.Gen.Metrics.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
536foreach (var documentId in project.DocumentIds)
Microsoft.Gen.MetricsReports.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
536foreach (var documentId in project.DocumentIds)