1 write to _storageHandle
Microsoft.CodeAnalysis.Workspaces (1)
Serialization\SerializableSourceText.cs (1)
74_storageHandle = storageHandle;
11 references to _storageHandle
Microsoft.CodeAnalysis.Workspaces (11)
Serialization\SerializableSourceText.cs (11)
32/// Exactly one of <see cref="_storageHandle"/> or <see cref="_text"/> will be non-<see langword="null"/>. 40/// <inheritdoc cref="_storageHandle"/> 45/// Weak reference to a SourceText computed from <see cref="_storageHandle"/>. Useful so that if multiple requests 79var computedContentHash = TryGetText()?.GetContentHash() ?? _storageHandle!.ContentHash; 98text = await _storageHandle!.ReadFromTemporaryStorageAsync(cancellationToken).ConfigureAwait(false); 110text = _storageHandle!.ReadFromTemporaryStorage(cancellationToken); 142if (_storageHandle is not null) 145_storageHandle.Identifier.WriteTo(writer); 146writer.WriteInt32((int)_storageHandle.ChecksumAlgorithm); 147writer.WriteEncoding(_storageHandle.Encoding); 148writer.WriteByteArray(ImmutableCollectionsMarshal.AsArray(_storageHandle.ContentHash)!);