29 references to SegmentedCollectionsMarshal
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (29)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder+PrivateMarshal.cs (3)
12
/// Private helper class for use only by <see cref="
SegmentedCollectionsMarshal
"/>.
16
/// <inheritdoc cref="
SegmentedCollectionsMarshal
.GetValueRefOrNullRef{TKey, TValue}(ImmutableSegmentedDictionary{TKey, TValue}.Builder, TKey)"/>
18
=> ref
SegmentedCollectionsMarshal
.GetValueRefOrNullRef(dictionary._builder.GetOrCreateMutableDictionary(), key);
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+PrivateMarshal.cs (5)
14
/// <see cref="
SegmentedCollectionsMarshal
"/>.
45
/// <inheritdoc cref="
SegmentedCollectionsMarshal
.GetValueRefOrNullRef{TKey, TValue}(ImmutableSegmentedDictionary{TKey, TValue}, TKey)"/>
47
=> ref
SegmentedCollectionsMarshal
.GetValueRefOrNullRef(dictionary._dictionary, key);
49
/// <inheritdoc cref="
SegmentedCollectionsMarshal
.AsImmutableSegmentedDictionary{TKey, TValue}(SegmentedDictionary{TKey, TValue}?)"/>
53
/// <inheritdoc cref="
SegmentedCollectionsMarshal
.AsSegmentedDictionary{TKey, TValue}(ImmutableSegmentedDictionary{TKey, TValue})"/>
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+PrivateMarshal.cs (3)
14
/// <see cref="
SegmentedCollectionsMarshal
"/>.
45
/// <inheritdoc cref="
SegmentedCollectionsMarshal
.AsImmutableSegmentedHashSet{T}(SegmentedHashSet{T}?)"/>
49
/// <inheritdoc cref="
SegmentedCollectionsMarshal
.AsSegmentedHashSet{T}(ImmutableSegmentedHashSet{T})"/>
src\Dependencies\Collections\ImmutableSegmentedList`1+PrivateMarshal.cs (3)
14
/// <see cref="
SegmentedCollectionsMarshal
"/>.
45
/// <inheritdoc cref="
SegmentedCollectionsMarshal
.AsImmutableSegmentedList{T}(SegmentedList{T}?)"/>
49
/// <inheritdoc cref="
SegmentedCollectionsMarshal
.AsSegmentedList{T}(ImmutableSegmentedList{T})"/>
src\Dependencies\Collections\SegmentedArray.cs (10)
93
if (
SegmentedCollectionsMarshal
.AsSegments(sourceArray) ==
SegmentedCollectionsMarshal
.AsSegments(destinationArray)
448
=> new(
SegmentedCollectionsMarshal
.AsSegments(_first), _firstOffset,
SegmentedCollectionsMarshal
.AsSegments(_second), _secondOffset, _length);
534
=> new(
SegmentedCollectionsMarshal
.AsSegments(_first), _firstOffset,
SegmentedCollectionsMarshal
.AsSegments(_second), _secondOffset, _length);
549
=> new(
SegmentedCollectionsMarshal
.AsSegments(_enumerable._first), _enumerable._firstOffset,
SegmentedCollectionsMarshal
.AsSegments(_enumerable._second), _enumerable._secondOffset, _enumerable._length);
678
=> new(
SegmentedCollectionsMarshal
.AsSegments(_array), _offset, _length);
693
=> new(
SegmentedCollectionsMarshal
.AsSegments(_enumerable._array), _enumerable._offset, _enumerable._length);
src\Dependencies\Collections\SegmentedArray`1+PrivateMarshal.cs (2)
10
/// Private helper class for use only by <see cref="
SegmentedCollectionsMarshal
"/>.
14
/// <inheritdoc cref="
SegmentedCollectionsMarshal
.AsSegments{T}(SegmentedArray{T})"/>
src\Dependencies\Collections\SegmentedDictionary`2+PrivateMarshal.cs (2)
10
/// Private helper class for use only by <see cref="
SegmentedCollectionsMarshal
"/>.
14
/// <inheritdoc cref="
SegmentedCollectionsMarshal
.GetValueRefOrNullRef{TKey, TValue}(SegmentedDictionary{TKey, TValue}, TKey)"/>
src\Dependencies\Collections\SegmentedList`1.cs (1)
96
if (
SegmentedCollectionsMarshal
.AsSegments(_items) is { Length: 1 } segments)