1 write to TextAndVersionSource
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\TextDocumentState.cs (1)
37TextAndVersionSource = textAndVersionSource;
31 references to TextAndVersionSource
Microsoft.CodeAnalysis.Workspaces (31)
Serialization\SerializableSourceText.cs (1)
118if (state.TextAndVersionSource.TextLoader is SerializableSourceTextLoader serializableLoader)
Workspace\Solution\AdditionalDocumentState.cs (2)
39TextAndVersionSource, 47TextAndVersionSource,
Workspace\Solution\AnalyzerConfigDocumentState.cs (2)
45TextAndVersionSource, 55TextAndVersionSource,
Workspace\Solution\DocumentState.cs (10)
316if (!TextAndVersionSource.CanReloadText) 323TextAndVersionSource, 333TextAndVersionSource, 370TextAndVersionSource, 380TextAndVersionSource, 412TextAndVersionSource, 427TextAndVersionSource, 438TextAndVersionSource, 574if (TextAndVersionSource is TreeTextSource) 584if (TextAndVersionSource.TryGetValue(LoadTextOptions, out var textAndVersion))
Workspace\Solution\ProjectState.cs (2)
943static (oldDocument, newDocument) => oldDocument.TextAndVersionSource == newDocument.TextAndVersionSource);
Workspace\Solution\SourceGeneratedDocumentState.cs (1)
186this.TextAndVersionSource,
Workspace\Solution\TextDocumentState.cs (13)
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)); 203if (this.TextAndVersionSource.TryGetValue(LoadTextOptions, out var textAndVersion)) 212=> this.TextAndVersionSource.GetVersionAsync(LoadTextOptions, cancellationToken); 224return oldState.TextAndVersionSource != TextAndVersionSource;