40 references to ITextAndVersionSource
Microsoft.CodeAnalysis.Workspaces (40)
Workspace\Solution\AdditionalDocumentState.cs (2)
19ITextAndVersionSource textAndVersionSource, 59protected override TextDocumentState UpdateText(ITextAndVersionSource newTextSource, PreservationMode mode, bool incremental)
Workspace\Solution\AnalyzerConfigDocumentState.cs (2)
21ITextAndVersionSource textAndVersionSource, 69protected override TextDocumentState UpdateText(ITextAndVersionSource newTextSource, PreservationMode mode, bool incremental)
Workspace\Solution\ConstantTextAndVersionSource.cs (1)
14internal sealed class ConstantTextAndVersionSource(TextAndVersion value) : ITextAndVersionSource
Workspace\Solution\DocumentState.cs (10)
43ITextAndVersionSource textSource, 62var textSource = CreateTextAndVersionSource(languageServices.SolutionServices, info.TextLoader, info.FilePath, loadTextOptions); 116ITextAndVersionSource newTextSource, 130ITextAndVersionSource newTextSource, 146ITextAndVersionSource newTextSource, 183ITextAndVersionSource newTextSource, 194ITextAndVersionSource newTextSource, 216ITextAndVersionSource newTextSource, 455protected override TextDocumentState UpdateText(ITextAndVersionSource newTextSource, PreservationMode mode, bool incremental) 531static (ITextAndVersionSource, TreeAndVersion) CreateTreeWithLazyText(
Workspace\Solution\DocumentState_LinkedFileReuse.cs (4)
62ITextAndVersionSource siblingTextSource, 107ITextAndVersionSource siblingTextSource, 239ITextAndVersionSource siblingTextSource, 262ITextAndVersionSource siblingTextSource,
Workspace\Solution\DocumentState_TreeTextSource.cs (1)
18private sealed class TreeTextSource(AsyncLazy<SourceText> textSource, VersionStamp version) : ITextAndVersionSource
Workspace\Solution\SourceGeneratedDocumentState.cs (2)
106ITextAndVersionSource textSource, 136protected override TextDocumentState UpdateText(ITextAndVersionSource newTextSource, PreservationMode mode, bool incremental)
Workspace\Solution\TextDocumentState.cs (6)
21public readonly ITextAndVersionSource TextAndVersionSource; 31ITextAndVersionSource textAndVersionSource, 69protected abstract TextDocumentState UpdateText(ITextAndVersionSource newTextSource, PreservationMode mode, bool incremental); 156var newTextSource = CreateTextAndVersionSource(SolutionServices, loader, FilePath, LoadTextOptions, mode); 161protected static ITextAndVersionSource CreateTextAndVersionSource(SolutionServices solutionServices, TextLoader? loader, string? filePath, LoadTextOptions loadTextOptions, PreservationMode mode = PreservationMode.PreserveValue) 166private static ITextAndVersionSource CreateTextFromLoader(SolutionServices solutionServices, TextLoader loader, PreservationMode mode)
Workspace\Solution\VersionSource\ITextAndVersionSource.cs (1)
20/// Retrieves the underlying <see cref="TextLoader"/> if that's what this <see cref="ITextAndVersionSource"/> was
Workspace\Solution\VersionSource\ITreeAndVersionSource.cs (1)
12/// Similar to <see cref="ITextAndVersionSource"/>, but for trees. Allows hiding (or introspecting) the details of how
Workspace\Solution\VersionSource\LoadableTextAndVersionSource.cs (1)
13internal sealed class LoadableTextAndVersionSource(TextLoader loader, bool cacheResult) : ITextAndVersionSource
Workspace\Solution\VersionSource\RecoverableTextAndVersion.cs (8)
18internal sealed partial class RecoverableTextAndVersion(ITextAndVersionSource initialSource, SolutionServices services) : ITextAndVersionSource 29private bool TryGetInitialSourceOrRecoverableText([NotNullWhen(true)] out ITextAndVersionSource? source, [NotNullWhen(false)] out RecoverableText? text) 34source = sourceOrRecoverableText as ITextAndVersionSource; 49=> (_initialSourceOrRecoverableText as ITextAndVersionSource)?.TextLoader; 87if (_initialSourceOrRecoverableText is ITextAndVersionSource source) 143public readonly ITextAndVersionSource? InitialSource; 148public RecoverableText(ITextAndVersionSource source, TextAndVersion textAndVersion, LoadTextOptions options, SolutionServices services)
Workspace\Workspace.cs (1)
212/// *identity*. In other words, they will point at the same <see cref="ITextAndVersionSource"/> instances,