4 references to WithTextLoader
Microsoft.CodeAnalysis.Workspaces (3)
Workspace\Workspace.cs (3)
2211
this.OnDocumentAdded(info.
WithTextLoader
(TextLoader.From(TextAndVersion.Create(text, VersionStamp.Create()))));
2255
this.OnAdditionalDocumentAdded(info.
WithTextLoader
(TextLoader.From(TextAndVersion.Create(text, VersionStamp.Create()))));
2288
this.OnAnalyzerConfigDocumentAdded(info.
WithTextLoader
(TextLoader.From(TextAndVersion.Create(text, VersionStamp.Create()))));
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
SolutionTests\DocumentInfoTests.cs (1)
111
SolutionTestHelpers.TestProperty(instance, (old, value) => old.
WithTextLoader
(value), opt => opt.TextLoader, (TextLoader)new TestTextLoader("text"));