32 references to AddDocument
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Rename\RenamerTests.cs (1)
234solution = solution.AddDocument(documentInfo);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
EditAndContinue\EditAndContinueLanguageServiceTests.cs (1)
255AddDocument(DocumentInfo.Create(
Microsoft.CodeAnalysis.Features (3)
EditAndContinue\CommittedSolution.cs (1)
300_solution = _solution.AddDocument(DocumentInfo.Create(
GenerateType\AbstractGenerateTypeService.Editor.cs (1)
349var updatedSolution = projectToBeUpdated.Solution.AddDocument(
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (1)
277pendingSolution = pendingSolution.AddDocument(documentInfo);
Microsoft.CodeAnalysis.Features.UnitTests (13)
EditAndContinue\CompileTimeSolutionProviderTests.cs (1)
51AddDocument(DocumentInfo.Create(
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (11)
89solution = solution.AddDocument(DocumentInfo.Create( 96solution = solution.AddDocument(DocumentInfo.Create( 103solution = solution.AddDocument(DocumentInfo.Create( 110solution = solution.AddDocument(DocumentInfo.Create( 124AddDocument(CreateDesignTimeOnlyDocument(projectPId, name: "dt1.cs", path: Path.Combine(dir.Path, "dt1.cs"))). 125AddDocument(CreateDesignTimeOnlyDocument(projectPId, name: "dt2.cs", path: "dt2.cs")); 131solution = solution.AddDocument(DocumentInfo.Create( 319solution = solution.WithProjectOutputFilePath(projectId, moduleFile.Path).AddDocument(documentInfo); 361solution = solution.AddDocument(documentInfo); 4015var document = project.Solution.AddDocument(documentInfo).GetDocument(documentInfo.Id); 4834solution = solution.AddDocument(DocumentInfo.Create(
EditAndContinue\UnitTestingHotReloadServiceTests.cs (1)
44solution = solution.AddDocument(DocumentInfo.Create(
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
ExternalAccess\Razor\FormatNewFileHandler.cs (1)
56var solution = project.Solution.AddDocument(
Microsoft.CodeAnalysis.Workspaces (4)
Workspace\Solution\Solution.cs (2)
998=> AddDocument(DocumentInfo.Create( 1024return AddDocument(DocumentInfo.Create(
Workspace\Workspace.cs (2)
1071oldSolution => oldSolution.AddDocument(documentInfo), 1099oldSolution => oldSolution.RemoveDocument(documentId).AddDocument(newDocumentInfo),
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Workspaces\TestWorkspace`1.cs (1)
535var (oldSolution, newSolution) = this.SetCurrentSolutionEx(this.CurrentSolution.AddDocument(documentInfo));
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
SolutionTests\SolutionTests.cs (4)
1623solution = solution.AddDocument(DocumentInfo.Create(documentAId, "a.cs", loader: textLoaderA, filePath: "a.cs")); 1626solution = solution.AddDocument(DocumentInfo.Create(fileDocumentId, "d.cs", loader: new FileTextLoader(fileD.Path, defaultEncoding: null), filePath: fileD.Path)); 2760.AddDocument(documentInfo1); 4943.AddDocument(DocumentInfo.Create(documentId, "Test", sourceCodeKind: SourceCodeKind.Script));
SolutionTests\SolutionWithSourceGeneratorTests.cs (1)
854project = project.Solution.AddDocument(documentInfo).Projects.Single()
Microsoft.VisualStudio.LanguageServices (1)
Implementation\AbstractEditorFactory.cs (1)
326var forkedSolution = projectToAddTo.Solution.AddDocument(
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
PersistentStorage\AbstractPersistentStorageTests.cs (1)
993solution = solution.AddDocument(DocumentInfo.Create(DocumentId.CreateNewId(project.Id), "Document1",
Roslyn.VisualStudio.Next.UnitTests (1)
Services\SolutionServiceTests.cs (1)
402return s.AddDocument(documentInfo);