12 references to WithDocumentFilePath
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Host\RemoteWorkspace.SolutionCreator.cs (1)
582document = document.Project.Solution.WithDocumentFilePath(document.Id, newDocumentInfo.FilePath).GetRequiredDocument(document.Id);
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\Solution\Document.cs (1)
435=> this.Project.Solution.WithDocumentFilePath(this.Id, filePath).GetRequiredDocument(Id);
Workspace\Workspace.cs (1)
1154newSolution = newSolution.WithDocumentFilePath(documentId, newInfo.FilePath);
Microsoft.CodeAnalysis.Workspaces.UnitTests (9)
SolutionTests\SolutionTests.cs (9)
227var newSolution1 = solution.WithDocumentFilePath(documentId, path); 231var newSolution2 = newSolution1.WithDocumentFilePath(documentId, path); 234var newSolution3 = solution.WithDocumentFilePath(documentId, ""); 238var newSolution4 = solution.WithDocumentFilePath(documentId, null); 242Assert.Throws<ArgumentNullException>(() => solution.WithDocumentFilePath(null!, path)); 243Assert.Throws<InvalidOperationException>(() => solution.WithDocumentFilePath(s_unrelatedDocumentId, path)); 3304solution = solution.WithDocumentFilePath(documentId, NewFilePath); 3946.WithDocumentFilePath(did, "document path"); 4955solution = solution.WithDocumentFilePath(documentId, @"Z:\NewPath.txt");