1 write to _storageHandle
Microsoft.CodeAnalysis.Workspaces (1)
Serialization\SerializableSourceText.cs (1)
77
_storageHandle
= storageHandle;
11 references to _storageHandle
Microsoft.CodeAnalysis.Workspaces (11)
Serialization\SerializableSourceText.cs (11)
35
/// Exactly one of <see cref="
_storageHandle
"/> or <see cref="_text"/> will be non-<see langword="null"/>.
43
/// <inheritdoc cref="
_storageHandle
"/>
48
/// Weak reference to a SourceText computed from <see cref="
_storageHandle
"/>. Useful so that if multiple requests
82
var computedContentHash = TryGetText()?.GetContentHash() ??
_storageHandle
!.ContentHash;
101
text = await
_storageHandle
!.ReadFromTemporaryStorageAsync(cancellationToken).ConfigureAwait(false);
113
text =
_storageHandle
!.ReadFromTemporaryStorage(cancellationToken);
149
if (
_storageHandle
is not null)
152
_storageHandle
.Identifier.WriteTo(writer);
153
writer.WriteInt32((int)
_storageHandle
.ChecksumAlgorithm);
154
writer.WriteEncoding(
_storageHandle
.Encoding);
155
writer.WriteByteArray(ImmutableCollectionsMarshal.AsArray(
_storageHandle
.ContentHash)!);