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