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