1 write to _storage
Microsoft.CodeAnalysis.Workspaces (1)
Serialization\SerializableSourceText.cs (1)
61_storage = storage;
12 references to _storage
Microsoft.CodeAnalysis.Workspaces (12)
Serialization\SerializableSourceText.cs (12)
29/// Exactly one of <see cref="_storage"/> or <see cref="_text"/> will be non-<see langword="null"/>. 42/// Weak reference to a SourceText computed from <see cref="_storage"/>. Useful so that if multiple requests 75return TryGetText()?.GetChecksum() ?? _storage!.GetChecksum(); 85text = await _storage!.ReadTextAsync(cancellationToken).ConfigureAwait(false); 97text = _storage!.ReadText(cancellationToken); 121if (_storage is not null) 123context.AddResource(_storage); 125writer.WriteInt32((int)_storage.ChecksumAlgorithm); 126writer.WriteEncoding(_storage.Encoding); 129writer.WriteString(_storage.Name); 130writer.WriteInt64(_storage.Offset); 131writer.WriteInt64(_storage.Size);