11 references to WithDocumentFilePath
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)); 3301solution = solution.WithDocumentFilePath(documentId, NewFilePath); 3939.WithDocumentFilePath(did, "document path"); 4967solution = solution.WithDocumentFilePath(documentId, @"Z:\NewPath.txt");