1 write to TextLoader
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\DocumentInfo.cs (1)
69TextLoader = loader;
9 references to TextLoader
Microsoft.CodeAnalysis.Workspaces (6)
Workspace\Solution\AdditionalDocumentState.cs (1)
30: this(solutionServices, documentInfo.DocumentServiceProvider, documentInfo.Attributes, CreateTextAndVersionSource(solutionServices, documentInfo.TextLoader, documentInfo.FilePath, loadTextOptions), loadTextOptions)
Workspace\Solution\AnalyzerConfigDocumentState.cs (1)
36: this(solutionServices, documentInfo.DocumentServiceProvider, documentInfo.Attributes, CreateTextAndVersionSource(solutionServices, documentInfo.TextLoader, documentInfo.FilePath, loadTextOptions), loadTextOptions)
Workspace\Solution\DocumentInfo.cs (2)
104var newLoader = loader.HasValue ? loader.Value : TextLoader; 108newLoader == TextLoader &&
Workspace\Solution\DocumentState.cs (1)
62var textSource = CreateTextAndVersionSource(languageServices.SolutionServices, info.TextLoader, info.FilePath, loadTextOptions);
Workspace\Solution\TextDocumentState.cs (1)
56.WithTextLoader(info.TextLoader, PreservationMode.PreserveValue);
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
SolutionTests\DocumentInfoTests.cs (3)
46Assert.Same(loader, info.TextLoader); 65Assert.Null(info.TextLoader); 111SolutionTestHelpers.TestProperty(instance, (old, value) => old.WithTextLoader(value), opt => opt.TextLoader, (TextLoader)new TestTextLoader("text"));