1 write to TextLoader
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\DocumentInfo.cs (1)
69
TextLoader
= 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)
104
var newLoader = loader.HasValue ? loader.Value :
TextLoader
;
108
newLoader ==
TextLoader
&&
Workspace\Solution\DocumentState.cs (1)
62
var 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)
46
Assert.Same(loader, info.
TextLoader
);
65
Assert.Null(info.
TextLoader
);
111
SolutionTestHelpers.TestProperty(instance, (old, value) => old.WithTextLoader(value), opt => opt.
TextLoader
, (TextLoader)new TestTextLoader("text"));