3 references to WithAnalyzerConfigDocumentText
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Workspace_Editor.cs (1)
541
withDocumentTextAndVersion: (oldSolution, documentId, newTextAndVersion, mode) => oldSolution.
WithAnalyzerConfigDocumentText
(documentId, newTextAndVersion, mode),
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
SolutionTests\SolutionTests.cs (2)
1002
Assert.Throws<ArgumentNullException>(() => solution.
WithAnalyzerConfigDocumentText
((DocumentId)null!, textAndVersion, PreservationMode.PreserveIdentity));
1003
Assert.Throws<InvalidOperationException>(() => solution.
WithAnalyzerConfigDocumentText
(s_unrelatedDocumentId, textAndVersion, PreservationMode.PreserveIdentity));