1 write to Documents
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\ProjectInfo.cs (1)
170Documents = documents;
22 references to Documents
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
SolutionCrawler\WorkCoordinatorTests.cs (2)
626var info = solution.Projects[0].Documents[0]; 652var info = solution.Projects[0].Documents[0];
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Workspaces\LspMiscellaneousFilesWorkspace.cs (1)
70var id = projectInfo.Documents.Single().Id;
Microsoft.CodeAnalysis.Workspaces (3)
Workspace\Solution\ProjectInfo.cs (2)
298var newDocuments = documents ?? Documents; 309newDocuments == Documents &&
Workspace\Solution\ProjectState.cs (1)
119DocumentStates = new TextDocumentStates<DocumentState>(projectInfoFixed.Documents, info => CreateDocument(info, parseOptions, loadTextOptions));
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
VisualStudioMSBuildWorkspaceTests.cs (1)
2359var doc = infos[0].Documents[0];
Microsoft.CodeAnalysis.Workspaces.UnitTests (14)
CommandLineProject\CommandLineProjectTests.cs (9)
27var docInfo = info.Documents.First(); 58var docInfo = info.Documents.First(); 69var docInfo = info.Documents.First(); 81var docInfo = info.Documents.First(); 92var docInfo = info.Documents.First(); 104var docInfo = info.Documents.First(); 115var docInfo = info.Documents.First(); 126var firstDoc = info.Documents.Single(); 141var firstDoc = info.Documents.Single();
SolutionTests\ProjectInfoTests.cs (5)
76Assert.Same(documentInfo, ((ImmutableArray<DocumentInfo>)info1.Documents).Single()); 79Assert.True(((ImmutableArray<DocumentInfo>)info2.Documents).IsEmpty); 82Assert.True(((ImmutableArray<DocumentInfo>)info3.Documents).IsEmpty); 85Assert.True(((ImmutableArray<DocumentInfo>)info4.Documents).IsEmpty); 197SolutionTestHelpers.TestListProperty(instance, (old, value) => old.WithDocuments(value), opt => opt.Documents, documentInfo, allowDuplicates: false);
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\MiscellaneousFilesWorkspace.cs (1)
279OnDocumentOpened(projectInfo.Documents.Single().Id, sourceTextContainer);