1 write to TextAndVersionSource
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\TextDocumentState.cs (1)
37
TextAndVersionSource
= textAndVersionSource;
31 references to TextAndVersionSource
Microsoft.CodeAnalysis.Workspaces (31)
Serialization\SerializableSourceText.cs (1)
122
if (state.
TextAndVersionSource
.TextLoader is SerializableSourceTextLoader serializableLoader)
Workspace\Solution\AdditionalDocumentState.cs (2)
39
TextAndVersionSource
,
47
TextAndVersionSource
,
Workspace\Solution\AnalyzerConfigDocumentState.cs (2)
45
TextAndVersionSource
,
55
TextAndVersionSource
,
Workspace\Solution\DocumentState.cs (10)
316
if (!
TextAndVersionSource
.CanReloadText)
323
TextAndVersionSource
,
333
TextAndVersionSource
,
370
TextAndVersionSource
,
380
TextAndVersionSource
,
412
TextAndVersionSource
,
427
TextAndVersionSource
,
438
TextAndVersionSource
,
559
if (
TextAndVersionSource
is TreeTextSource)
569
if (
TextAndVersionSource
.TryGetValue(LoadTextOptions, out var textAndVersion))
Workspace\Solution\ProjectState.cs (2)
1071
static (oldDocument, newDocument) => oldDocument.
TextAndVersionSource
== newDocument.
TextAndVersionSource
);
Workspace\Solution\SourceGeneratedDocumentState.cs (1)
186
this.
TextAndVersionSource
,
Workspace\Solution\TextDocumentState.cs (13)
65
=> ReferenceEquals(loader,
TextAndVersionSource
.TextLoader) ? this : UpdateText(loader, mode);
78
=> (
TextAndVersionSource
as RecoverableTextAndVersion)?.StorageHandle;
82
if (this.
TextAndVersionSource
.TryGetValue(LoadTextOptions, out var textAndVersion))
95
=>
TextAndVersionSource
.TryGetVersion(LoadTextOptions, out version);
98
=>
TextAndVersionSource
.TryGetValue(LoadTextOptions, out textAndVersion);
116
var textAndVersion = this.
TextAndVersionSource
.GetValue(LoadTextOptions, cancellationToken);
122
var textAndVersion = this.
TextAndVersionSource
.GetValue(LoadTextOptions, cancellationToken);
188
if (this.
TextAndVersionSource
.TryGetValue(LoadTextOptions, out var textAndVersion))
194
return new ValueTask<TextAndVersion>(
TextAndVersionSource
.GetValueAsync(LoadTextOptions, cancellationToken));
203
if (this.
TextAndVersionSource
.TryGetValue(LoadTextOptions, out var textAndVersion))
212
=> this.
TextAndVersionSource
.GetVersionAsync(LoadTextOptions, cancellationToken);
224
return oldState.
TextAndVersionSource
!=
TextAndVersionSource
;