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
75
return TryGetText()?.GetChecksum() ??
_storage
!.GetChecksum();
85
text = await
_storage
!.ReadTextAsync(cancellationToken).ConfigureAwait(false);
97
text =
_storage
!.ReadText(cancellationToken);
121
if (
_storage
is not null)
123
context.AddResource(
_storage
);
125
writer.WriteInt32((int)
_storage
.ChecksumAlgorithm);
126
writer.WriteEncoding(
_storage
.Encoding);
129
writer.WriteString(
_storage
.Name);
130
writer.WriteInt64(
_storage
.Offset);
131
writer.WriteInt64(
_storage
.Size);