1 write to TextAndVersionSource
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\TextDocumentState.cs (1)
37TextAndVersionSource = textAndVersionSource;
32 references to TextAndVersionSource
Microsoft.CodeAnalysis.Workspaces (32)
Serialization\SerializableSourceText.cs (1)
121if (state.TextAndVersionSource.TextLoader is SerializableSourceTextLoader serializableLoader)
Workspace\Solution\AdditionalDocumentState.cs (2)
39TextAndVersionSource, 47TextAndVersionSource,
Workspace\Solution\AnalyzerConfigDocumentState.cs (2)
45TextAndVersionSource, 55TextAndVersionSource,
Workspace\Solution\DocumentState.cs (9)
314if (!TextAndVersionSource.CanReloadText) 321TextAndVersionSource, 331TextAndVersionSource, 368TextAndVersionSource, 378TextAndVersionSource, 410TextAndVersionSource, 425TextAndVersionSource, 436TextAndVersionSource, 571if (TextAndVersionSource.TryGetValue(LoadTextOptions, out var textAndVersion))
Workspace\Solution\ProjectState.cs (2)
1071static (oldDocument, newDocument) => oldDocument.TextAndVersionSource == newDocument.TextAndVersionSource);
Workspace\Solution\SourceGeneratedDocumentState.cs (2)
184this.TextAndVersionSource, 207this.TextAndVersionSource,
Workspace\Solution\TextDocumentState.cs (14)
65=> ReferenceEquals(loader, TextAndVersionSource.TextLoader) ? this : UpdateText(loader, mode); 78=> (TextAndVersionSource as RecoverableTextAndVersion)?.StorageHandle; 82if (this.TextAndVersionSource.TryGetValue(LoadTextOptions, out var textAndVersion)) 95=> TextAndVersionSource.TryGetVersion(LoadTextOptions, out version); 98=> TextAndVersionSource.TryGetValue(LoadTextOptions, out textAndVersion); 116var textAndVersion = this.TextAndVersionSource.GetValue(LoadTextOptions, cancellationToken); 122var textAndVersion = this.TextAndVersionSource.GetValue(LoadTextOptions, cancellationToken); 188if (this.TextAndVersionSource.TryGetValue(LoadTextOptions, out var textAndVersion)) 194return new ValueTask<TextAndVersion>(TextAndVersionSource.GetValueAsync(LoadTextOptions, cancellationToken)); 200if (TextAndVersionSource is TreeTextSource) 209if (this.TextAndVersionSource.TryGetValue(LoadTextOptions, out var textAndVersion)) 218=> this.TextAndVersionSource.GetVersionAsync(LoadTextOptions, cancellationToken); 230return oldState.TextAndVersionSource != TextAndVersionSource;