12 references to WithDocumentFilePath
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Host\RemoteWorkspace.SolutionCreator.cs (1)
582
document = 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)
1154
newSolution = newSolution.
WithDocumentFilePath
(documentId, newInfo.FilePath);
Microsoft.CodeAnalysis.Workspaces.UnitTests (9)
SolutionTests\SolutionTests.cs (9)
227
var newSolution1 = solution.
WithDocumentFilePath
(documentId, path);
231
var newSolution2 = newSolution1.
WithDocumentFilePath
(documentId, path);
234
var newSolution3 = solution.
WithDocumentFilePath
(documentId, "");
238
var newSolution4 = solution.
WithDocumentFilePath
(documentId, null);
242
Assert.Throws<ArgumentNullException>(() => solution.
WithDocumentFilePath
(null!, path));
243
Assert.Throws<InvalidOperationException>(() => solution.
WithDocumentFilePath
(s_unrelatedDocumentId, path));
3304
solution = solution.
WithDocumentFilePath
(documentId, NewFilePath);
3946
.
WithDocumentFilePath
(did, "document path");
4955
solution = solution.
WithDocumentFilePath
(documentId, @"Z:\NewPath.txt");