1 write to TextAndVersionSource
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\TextDocumentState.cs (1)
37TextAndVersionSource = textAndVersionSource;
36 references to TextAndVersionSource
Microsoft.CodeAnalysis.EditorFeatures (2)
EditAndContinue\PdbMatchingSourceTextProvider.cs (2)
85if (oldDocument.State.TextAndVersionSource.CanReloadText && !newDocument.State.TextAndVersionSource.CanReloadText)
Microsoft.CodeAnalysis.Workspaces (34)
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)
1053static (oldDocument, newDocument) => oldDocument.TextAndVersionSource == newDocument.TextAndVersionSource);
Workspace\Solution\SolutionCompilationState.cs (3)
1033oldDocumentState.TextAndVersionSource == documentState.TextAndVersionSource && oldDocumentState.TreeSource == documentState.TreeSource 1035: oldDocumentState.UpdateTextAndTreeContents(documentState.TextAndVersionSource, documentState.TreeSource, forceEvenIfTreesWouldDiffer));
Workspace\Solution\SourceGeneratedDocumentState.cs (1)
219this.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); 111var textAndVersion = this.TextAndVersionSource.GetValue(LoadTextOptions, cancellationToken); 117var textAndVersion = this.TextAndVersionSource.GetValue(LoadTextOptions, cancellationToken); 183if (this.TextAndVersionSource.TryGetValue(LoadTextOptions, out var textAndVersion)) 189return await TextAndVersionSource.GetValueAsync(LoadTextOptions, cancellationToken).ConfigureAwait(false); 195if (TextAndVersionSource is TreeTextSource) 204if (this.TextAndVersionSource.TryGetValue(LoadTextOptions, out var textAndVersion)) 213=> this.TextAndVersionSource.GetVersionAsync(LoadTextOptions, cancellationToken); 225return oldState.TextAndVersionSource != TextAndVersionSource;