1 write to _storageHandle
Microsoft.CodeAnalysis.Workspaces (1)
Serialization\SerializableSourceText.cs (1)
78
_storageHandle
= storageHandle;
11 references to _storageHandle
Microsoft.CodeAnalysis.Workspaces (11)
Serialization\SerializableSourceText.cs (11)
36
/// Exactly one of <see cref="
_storageHandle
"/> or <see cref="_text"/> will be non-<see langword="null"/>.
44
/// <inheritdoc cref="
_storageHandle
"/>
49
/// Weak reference to a SourceText computed from <see cref="
_storageHandle
"/>. Useful so that if multiple requests
83
var computedContentHash = TryGetText()?.GetContentHash() ??
_storageHandle
!.ContentHash;
103
text = await
_storageHandle
!.ReadFromTemporaryStorageAsync(cancellationToken).ConfigureAwait(false);
115
text =
_storageHandle
!.ReadFromTemporaryStorage(cancellationToken);
151
if (
_storageHandle
is not null)
154
_storageHandle
.Identifier.WriteTo(writer);
155
writer.WriteInt32((int)
_storageHandle
.ChecksumAlgorithm);
156
writer.WriteEncoding(
_storageHandle
.Encoding);
157
writer.WriteByteArray(ImmutableCollectionsMarshal.AsArray(
_storageHandle
.ContentHash)!);