1 write to TextAndVersionSource
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\TextDocumentState.cs (1)
45
TextAndVersionSource
= textAndVersionSource;
30 references to TextAndVersionSource
Microsoft.CodeAnalysis.EditorFeatures (2)
EditAndContinue\PdbMatchingSourceTextProvider.cs (2)
84
if (oldDocument.State.
TextAndVersionSource
.CanReloadText && !newDocument.State.
TextAndVersionSource
.CanReloadText)
Microsoft.CodeAnalysis.Workspaces (28)
Workspace\Solution\DocumentState.cs (11)
74
TextAndVersionSource
,
301
if (!
TextAndVersionSource
.CanReloadText)
308
TextAndVersionSource
,
319
TextAndVersionSource
,
376
TextAndVersionSource
,
387
TextAndVersionSource
,
419
TextAndVersionSource
,
433
TextAndVersionSource
,
444
TextAndVersionSource
,
577
if (
TextAndVersionSource
is TreeTextSource)
587
if (
TextAndVersionSource
.TryGetValue(LoadTextOptions, out var textAndVersion))
Workspace\Solution\DocumentState_LinkedFileReuse.cs (1)
52
var textAndVersionSource = this.
TextAndVersionSource
;
Workspace\Solution\SolutionState.cs (3)
1368
if (oldDocument.
TextAndVersionSource
== documentState.
TextAndVersionSource
&&
1375
oldDocument.UpdateTextAndTreeContents(documentState.
TextAndVersionSource
, documentState.TreeSource),
Workspace\Solution\TextDocumentState.cs (13)
99
=> (
TextAndVersionSource
as RecoverableTextAndVersion)?.Storage;
103
if (this.
TextAndVersionSource
.TryGetValue(LoadTextOptions, out var textAndVersion))
118
if (this.
TextAndVersionSource
is ITextVersionable versionable)
123
if (this.
TextAndVersionSource
.TryGetValue(LoadTextOptions, out var textAndVersion))
136
=>
TextAndVersionSource
.TryGetValue(LoadTextOptions, out textAndVersion);
154
var textAndVersion = this.
TextAndVersionSource
.GetValue(LoadTextOptions, cancellationToken);
160
var textAndVersion = this.
TextAndVersionSource
.GetValue(LoadTextOptions, cancellationToken);
215
if (this.
TextAndVersionSource
.TryGetValue(LoadTextOptions, out var textAndVersion))
221
return new ValueTask<TextAndVersion>(
TextAndVersionSource
.GetValueAsync(LoadTextOptions, cancellationToken));
230
if (this.
TextAndVersionSource
.TryGetValue(LoadTextOptions, out var textAndVersion))
240
var textAndVersion = await this.
TextAndVersionSource
.GetValueAsync(LoadTextOptions, cancellationToken).ConfigureAwait(false);
254
return oldState.
TextAndVersionSource
!=
TextAndVersionSource
;