1 write to TextLoader
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\DocumentInfo.cs (1)
71
TextLoader
= loader;
9 references to TextLoader
Microsoft.CodeAnalysis.Workspaces (4)
Workspace\Solution\DocumentInfo.cs (2)
106
var newLoader = loader.HasValue ? loader.Value :
TextLoader
;
110
newLoader ==
TextLoader
&&
Workspace\Solution\TextDocumentState.cs (2)
62
textAndVersionSource: info.
TextLoader
!= null
63
? CreateRecoverableText(info.
TextLoader
, solutionServices)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
VisualStudioMSBuildWorkspaceTests.cs (2)
2360
var tav = doc.
TextLoader
.LoadTextAndVersionSynchronously(new LoadTextOptions(SourceHashAlgorithms.Default), CancellationToken.None);
2363
var atav = adoc.
TextLoader
.LoadTextAndVersionSynchronously(new LoadTextOptions(SourceHashAlgorithms.Default), CancellationToken.None);
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
SolutionTests\DocumentInfoTests.cs (3)
48
Assert.Same(loader, info.
TextLoader
);
67
Assert.Null(info.
TextLoader
);
113
SolutionTestHelpers.TestProperty(instance, (old, value) => old.WithTextLoader(value), opt => opt.
TextLoader
, (TextLoader)new TestTextLoader("text"));