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