10 references to WithDocumentFilePath
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\Document.cs (1)
416=> this.Project.Solution.WithDocumentFilePath(this.Id, filePath).GetRequiredDocument(Id);
Microsoft.CodeAnalysis.Workspaces.UnitTests (8)
SolutionTests\SolutionTests.cs (8)
229var newSolution1 = solution.WithDocumentFilePath(documentId, path); 233var newSolution2 = newSolution1.WithDocumentFilePath(documentId, path); 236var newSolution3 = solution.WithDocumentFilePath(documentId, ""); 240var newSolution4 = solution.WithDocumentFilePath(documentId, null); 244Assert.Throws<ArgumentNullException>(() => solution.WithDocumentFilePath(null!, path)); 245Assert.Throws<InvalidOperationException>(() => solution.WithDocumentFilePath(s_unrelatedDocumentId, path)); 3132solution = solution.WithDocumentFilePath(documentId, NewFilePath); 3770.WithDocumentFilePath(did, "document path");
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
DocumentOutline\DocumentOutlineTestsBase.cs (1)
106solution = solution.WithDocumentFilePath(document.Id, PathRoot + document.Name);