40 references to DocumentIds
dotnet-format (2)
CodeFormatter.cs (2)
173
var totalFileCount = solution.Projects.Sum(project => project.
DocumentIds
.Count);
203
projectFileCount += project.
DocumentIds
.Count;
Microsoft.Analyzers.Extra.Tests (1)
Resources\RoslynTestUtils.cs (1)
494
foreach (var documentId in project.
DocumentIds
)
Microsoft.Analyzers.Local.Tests (1)
Resources\RoslynTestUtils.cs (1)
495
foreach (var documentId in project.
DocumentIds
)
Microsoft.CodeAnalysis.Features (11)
Copilot\ICopilotChangeAnalysisService.cs (1)
118
var projectDocumentCount = newDocument.Project.
DocumentIds
.Count;
DesignerAttribute\DesignerAttributeDiscoveryService.cs (1)
237
foreach (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)
81
var count = documentAnalysisScope != null ? 1 : project.
DocumentIds
.Count + 1;
Diagnostics\Service\DiagnosticAnalyzerService_ForceCodeAnalysisDiagnostics.cs (1)
49
project, [.. project.
DocumentIds
, .. project.AdditionalDocumentIds, .. sourceGeneratorDocuments.Select(d => d.Id)],
Diagnostics\Service\DiagnosticAnalyzerService_ProduceProjectDiagnostics.cs (1)
79
documentIds.IsDefault ? [.. project.
DocumentIds
, .. project.AdditionalDocumentIds] : documentIds,
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (4)
383
foreach (var documentId in project.
DocumentIds
)
667
count += project.
DocumentIds
.Count;
693
foreach (var documentId in project.
DocumentIds
)
711
foreach (var documentId in project.
DocumentIds
)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingSemanticChangeProcessor.cs (1)
435
foreach (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)
82
m[DocumentCount] = fixAllState.Project.
DocumentIds
.Count;
86
m[DocumentCount] = fixAllState.Solution.Projects.Sum(p => p.
DocumentIds
.Count);
Diagnostics\GeneratorDiagnosticsPlaceholderAnalyzer.cs (1)
43
textDocument.Id == project.
DocumentIds
[0])
Editing\SymbolEditor.cs (1)
86
foreach (var id in project.
DocumentIds
)
FindSymbols\FindLiterals\FindLiteralsSearchEngine.cs (1)
87
var count = _solution.Projects.SelectMany(p => p.
DocumentIds
).Count();
Workspace\Solution\Project.cs (1)
198
public 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)
306
addedDocumentIds.AddRange(addedProject.
DocumentIds
);
Microsoft.Gen.BuildMetadata.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
536
foreach (var documentId in project.
DocumentIds
)
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
536
foreach (var documentId in project.
DocumentIds
)
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
536
foreach (var documentId in project.
DocumentIds
)
Microsoft.Gen.Logging.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
536
foreach (var documentId in project.
DocumentIds
)
Microsoft.Gen.MetadataExtractor.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
536
foreach (var documentId in project.
DocumentIds
)
Microsoft.Gen.Metrics.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
536
foreach (var documentId in project.
DocumentIds
)
Microsoft.Gen.MetricsReports.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
536
foreach (var documentId in project.
DocumentIds
)