2 instantiations of VBuffer
Microsoft.CodeAnalysis.Workspaces (2)
Differencing\LongestCommonSubsequence.cs (2)
25
private static readonly ObjectPool<VBuffer> s_pool = new(() => new
VBuffer
());
161
_currentBuffer = _currentBuffer.Next ?? new
VBuffer
(_currentBuffer);
12 references to VBuffer
Microsoft.CodeAnalysis.Workspaces (12)
Differencing\LongestCommonSubsequence.cs (12)
20
/// must be less than <see cref="
VBuffer
.PooledSegmentMaxDepthThreshold"/>.
22
public const int MaxSequenceLengthForDistanceCalculation =
VBuffer
.PooledSegmentMaxDepthThreshold / 2;
25
private static readonly ObjectPool<
VBuffer
> s_pool = new(() => new VBuffer());
76
public
VBuffer
Previous { get; private set; }
77
public
VBuffer
Next { get; private set; }
90
public VBuffer(
VBuffer
previous)
141
private readonly ObjectPool<
VBuffer
> _bufferPool;
142
private readonly
VBuffer
_firstBuffer;
144
private
VBuffer
_currentBuffer;
147
public VStack(ObjectPool<
VBuffer
> bufferPool)
169
var
buffer = _currentBuffer;
174
var
previousBuffer = buffer.Previous;