Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
using System.Diagnostics;
using System.Runtime.CompilerServices;

namespace StackArrayBuilder;

/// <summary>
/// Helper type for avoiding allocations while building arrays.
/// </summary>
/// <typeparam name="T">The element type.</typeparam>
/// <remarks>
/// Will grow heap allocated size, if you need it.
/// Only use grow in rare cases, as it needs to grow the array, if over already allocated size.
/// If you are certain of the max size needed, you can use e.g. <code>StackArrayBuilder8</code>
/// </remarks>
internal ref struct StackArrayBuilder<T>
{
private InlineArray16<T> _stackAllocatedBuffer = default;
public const int StackAllocatedCapacity = 16;
private const int DefaultHeapCapacity = 4;

private T[]? _heapArrayBuffer; // Starts out null, initialized if capacity is over stack allocated size when constructing or on Add.
private int _count; // Number of items added.

/// <summary>
/// Initializes the <see cref="StackArrayBuilder{T}"/> with a specified capacity.
/// </summary>
/// <param name="capacity">The capacity of the array to allocate.</param>
public StackArrayBuilder(int capacity) : this()
{
Debug.Assert(capacity >= 0);
if (capacity > StackAllocatedCapacity)
{
_heapArrayBuffer = new T[capacity - StackAllocatedCapacity];
}
}

/// <summary>
/// Gets the number of items this instance can store without re-allocating.
/// <c>StackAllocatedCapacity</c> if the backing heap array is not needed, all up to that is already stack allocated
/// </summary>
/// <remarks>Only for unit testing, checking that overallocation does not happen</remarks>
public int Capacity => _heapArrayBuffer?.Length + StackAllocatedCapacity ?? StackAllocatedCapacity;

/// <summary>
/// Adds an item, resizing heap allocated array if necessary.
/// </summary>
/// <param name="item">The item to add.</param>
public void Add(T item)
{
if (_count == Capacity)
{
EnsureCapacity(_count + 1);
}

UncheckedAdd(item);
}

/// <summary>
/// Creates an array from the contents of this builder.
/// </summary>
public T[] ToArray()
{
if (_count == 0)
{
return [];
}

T[] result = new T[_count];
int index = 0;
foreach (T stackAllocatedValue in _stackAllocatedBuffer)
{
result[index++] = stackAllocatedValue;
if (index >= _count)
{
return result;
}
}

_heapArrayBuffer.AsSpan(0, _count - StackAllocatedCapacity).CopyTo(result.AsSpan(start: StackAllocatedCapacity));

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm Debug AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm Debug AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Debug AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Debug AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build tvossimulator-x64 Debug AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build tvossimulator-x64 Debug AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Release AllSubsets_Mono_LLVMAOT)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Release AllSubsets_Mono_LLVMAOT)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build android-arm Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build android-arm Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build android-arm64 Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build android-arm64 Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Release AllSubsets_Mono_LLVMAOT)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Release AllSubsets_Mono_LLVMAOT)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Debug Mono_MiniJIT_LibrariesTests)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Debug Mono_MiniJIT_LibrariesTests)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug Mono_MiniJIT_LibrariesTests)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug Mono_MiniJIT_LibrariesTests)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug Mono_Interpreter_LibrariesTests)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug Mono_Interpreter_LibrariesTests)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug Mono_MiniJIT_LibrariesTests)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug Mono_MiniJIT_LibrariesTests)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Release NativeAOT_Libraries)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Release NativeAOT_Libraries)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build maccatalyst-arm64 Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build maccatalyst-arm64 Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build tvos-arm64 Release AllSubsets_NativeAOT)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build tvos-arm64 Release AllSubsets_NativeAOT)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build maccatalyst-x64 Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build maccatalyst-x64 Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build android-arm64 Release AllSubsets_CoreCLR)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build android-arm64 Release AllSubsets_CoreCLR)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build tvos-arm64 Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build tvos-arm64 Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build android-x64 Release AllSubsets_CoreCLR)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build android-x64 Release AllSubsets_CoreCLR)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-arm Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-arm Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build ios-arm64 Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build ios-arm64 Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build ios-arm64 Release AllSubsets_NativeAOT)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build ios-arm64 Release AllSubsets_NativeAOT)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / dotnet-linker-tests (Build linux-x64 release Runtime_Release)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / dotnet-linker-tests (Build linux-x64 release Runtime_Release)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-arm64 Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-arm64 Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Debug AllSubsets_CoreCLR)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Debug AllSubsets_CoreCLR)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Debug AllSubsets_CoreCLR)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Debug AllSubsets_CoreCLR)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug CoreCLR_Libraries)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug CoreCLR_Libraries)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Debug CoreCLR_Libraries)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Debug CoreCLR_Libraries)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Debug Libraries_CheckedCoreCLR)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Debug Libraries_CheckedCoreCLR)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug AllSubsets_Mono_LLVMAOT)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug AllSubsets_Mono_LLVMAOT)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-arm64 Release NativeAOT_Libraries)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-arm64 Release NativeAOT_Libraries)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-arm64 release CoreCLR_Libraries)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-arm64 release CoreCLR_Libraries)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug CoreCLR_Libraries)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug CoreCLR_Libraries)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / dotnet-linker-tests (Build osx-x64 release Runtime_Release)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / dotnet-linker-tests (Build osx-x64 release Runtime_Release)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / dotnet-linker-tests

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / dotnet-linker-tests

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug Libraries_CheckedCoreCLR)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug Libraries_CheckedCoreCLR)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime-dev-innerloop (Build linux-x64 debug Libraries_WithPackages)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime-dev-innerloop (Build linux-x64 debug Libraries_WithPackages)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime-dev-innerloop (Build Source-Build (Linux_x64))

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime-dev-innerloop (Build Source-Build (Linux_x64))

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime-dev-innerloop

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime-dev-innerloop

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,26): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 79 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L79

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(79,83): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'T[]' does not contain a definition for 'AsSpan' and no accessible extension method 'AsSpan' accepting a first argument of type 'T[]' could be found (are you missing a using directive or an assembly reference?)

return result;
}

/// <summary>
/// Adds an item, without checking if there is room.
/// </summary>
/// <param name="item">The item to add.</param>
/// <remarks>
/// Use this method if you know there is enough space in the <see cref="StackArrayBuilder{T}"/>
/// for another item, and you are writing performance-sensitive code.
/// </remarks>
public void UncheckedAdd(T item)
{
Debug.Assert(_count < Capacity);
if (_count < StackAllocatedCapacity)
{
_stackAllocatedBuffer[_count++] = item;
}
else
{
_heapArrayBuffer![_count++ - StackAllocatedCapacity] = item;
}
}

private void EnsureCapacity(int minimum)
{
Debug.Assert(minimum > Capacity);

if (minimum < StackAllocatedCapacity)
{
return; // There is still room on the stack
}

if (_heapArrayBuffer == null)
{
// Initial capacity has not been not set or too low, we will allocate the default heap array size
_heapArrayBuffer = new T[DefaultHeapCapacity];
return;
}

// Check if allocated heap capacity was enough
int defaultCapacityWithHeap = _heapArrayBuffer.Length + StackAllocatedCapacity;
if (defaultCapacityWithHeap >= minimum)
{
return; // current allocated stack+heap is large enough
}

// We need to allocate more heap capacity, by increasing the size of the array
int nextHeapCapacity = 2 * _heapArrayBuffer.Length;

if ((uint)nextHeapCapacity > (uint)Array.MaxLength)

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm Debug AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Debug AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build tvossimulator-x64 Debug AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Release AllSubsets_Mono_LLVMAOT)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build android-arm Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build android-arm64 Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Release AllSubsets_Mono_LLVMAOT)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Debug Mono_MiniJIT_LibrariesTests)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug Mono_MiniJIT_LibrariesTests)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug Mono_Interpreter_LibrariesTests)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug Mono_MiniJIT_LibrariesTests)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Release NativeAOT_Libraries)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build maccatalyst-arm64 Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build tvos-arm64 Release AllSubsets_NativeAOT)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build maccatalyst-x64 Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build android-arm64 Release AllSubsets_CoreCLR)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build tvos-arm64 Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build android-x64 Release AllSubsets_CoreCLR)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-arm Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build ios-arm64 Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build ios-arm64 Release AllSubsets_NativeAOT)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / dotnet-linker-tests (Build linux-x64 release Runtime_Release)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-arm64 Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Debug AllSubsets_CoreCLR)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Debug AllSubsets_CoreCLR)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug CoreCLR_Libraries)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Debug CoreCLR_Libraries)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Debug Libraries_CheckedCoreCLR)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug AllSubsets_Mono_LLVMAOT)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-arm64 Release NativeAOT_Libraries)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-arm64 release CoreCLR_Libraries)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug CoreCLR_Libraries)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / dotnet-linker-tests (Build osx-x64 release Runtime_Release)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / dotnet-linker-tests

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug Libraries_CheckedCoreCLR)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime-dev-innerloop (Build linux-x64 debug Libraries_WithPackages)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime-dev-innerloop (Build Source-Build (Linux_x64))

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime-dev-innerloop

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 131 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L131

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(131,44): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context
{
nextHeapCapacity = Math.Max(_heapArrayBuffer.Length + 1, Array.MaxLength);

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm Debug AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Debug AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build tvossimulator-x64 Debug AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Release AllSubsets_Mono_LLVMAOT)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build android-arm Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build android-arm64 Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Release AllSubsets_Mono_LLVMAOT)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Debug Mono_MiniJIT_LibrariesTests)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug Mono_MiniJIT_LibrariesTests)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug Mono_Interpreter_LibrariesTests)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug Mono_MiniJIT_LibrariesTests)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Release NativeAOT_Libraries)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build maccatalyst-arm64 Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build tvos-arm64 Release AllSubsets_NativeAOT)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build maccatalyst-x64 Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build android-arm64 Release AllSubsets_CoreCLR)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build android-arm64 Release AllSubsets_CoreCLR)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,70): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Array' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build tvos-arm64 Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build android-x64 Release AllSubsets_CoreCLR)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-arm Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build ios-arm64 Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build ios-arm64 Release AllSubsets_NativeAOT)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / dotnet-linker-tests (Build linux-x64 release Runtime_Release)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-arm64 Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Debug AllSubsets_CoreCLR)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Debug AllSubsets_CoreCLR)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug CoreCLR_Libraries)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Debug CoreCLR_Libraries)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Debug Libraries_CheckedCoreCLR)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug AllSubsets_Mono_LLVMAOT)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-arm64 Release NativeAOT_Libraries)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-arm64 release CoreCLR_Libraries)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug CoreCLR_Libraries)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / dotnet-linker-tests (Build osx-x64 release Runtime_Release)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug Libraries_CheckedCoreCLR)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime-dev-innerloop (Build linux-x64 debug Libraries_WithPackages)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context

Check failure on line 133 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs

View check run for this annotation

Azure Pipelines / runtime-dev-innerloop (Build Source-Build (Linux_x64))

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs#L133

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder.cs(133,32): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'Math' does not exist in the current context
}

nextHeapCapacity = Math.Max(nextHeapCapacity, minimum);

Array.Resize(ref _heapArrayBuffer, nextHeapCapacity);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
using System.Runtime.CompilerServices;

namespace StackArrayBuilder;

/// <summary>
/// Helper type for avoiding allocations while building arrays.
/// </summary>
/// <typeparam name="T">The element type.</typeparam>
/// <remarks>
/// Throws <code>InvalidOperationException</code>, if the right size is not selected.
/// Be sure to select the right size to not over- or under-allocate expected size on stack.
/// </remarks>
internal ref struct StackArrayBuilder8<T>
{
private InlineArray8<T> _stackAllocatedBuffer = default;
public const int StackAllocatedCapacity = 8;

private int _count = 0; // Number of items added.

public StackArrayBuilder8()
{
}

/// <summary>Adds an item</summary>
/// <param name="item">The item to add.</param>
public void Add(T item)
{
if (_count == StackAllocatedCapacity)
{
throw new InvalidOperationException("Stack allocated capacity exceeded");

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm Debug AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Debug AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime (Build tvossimulator-x64 Debug AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Release AllSubsets_Mono_LLVMAOT)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime (Build android-arm Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime (Build android-arm64 Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Release AllSubsets_Mono_LLVMAOT)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Debug Mono_MiniJIT_LibrariesTests)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug Mono_MiniJIT_LibrariesTests)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug Mono_Interpreter_LibrariesTests)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug Mono_MiniJIT_LibrariesTests)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Release NativeAOT_Libraries)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime (Build maccatalyst-arm64 Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime (Build tvos-arm64 Release AllSubsets_NativeAOT)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime (Build maccatalyst-x64 Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime (Build tvos-arm64 Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime (Build android-x64 Release AllSubsets_CoreCLR)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-arm Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime (Build ios-arm64 Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime (Build ios-arm64 Release AllSubsets_NativeAOT)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Release AllSubsets_Mono)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / dotnet-linker-tests (Build linux-x64 release Runtime_Release)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-arm64 Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Debug AllSubsets_CoreCLR)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Debug AllSubsets_CoreCLR)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug CoreCLR_Libraries)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Debug CoreCLR_Libraries)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Debug Libraries_CheckedCoreCLR)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug AllSubsets_Mono_LLVMAOT)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-arm64 Release NativeAOT_Libraries)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-arm64 release CoreCLR_Libraries)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug CoreCLR_Libraries)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / dotnet-linker-tests (Build osx-x64 release Runtime_Release)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / dotnet-linker-tests

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug Libraries_CheckedCoreCLR)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime-dev-innerloop (Build linux-x64 debug Libraries_WithPackages)

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime-dev-innerloop (Build Source-Build (Linux_x64))

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime-dev-innerloop

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs

View check run for this annotation

Azure Pipelines / runtime

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs#L30

src/libraries/Common/src/System/Collections/Generic/StackArrayBuilder8.cs(30,23): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'InvalidOperationException' could not be found (are you missing a using directive or an assembly reference?)
}
_stackAllocatedBuffer[_count++] = item;
}

/// <summary>Creates an array from the contents of this builder.</summary>
public T[] ToArray()
{
if (_count == 0)
{
return [];
}

T[] result = new T[_count];
int index = 0;
foreach (T stackAllocatedValue in _stackAllocatedBuffer)
{
result[index++] = stackAllocatedValue;
if (index >= _count)
{
return result;
}
}
return result;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@
Link="Common\System\Text\ValueStringBuilder.cs" />
<Compile Include="$(CommonPath)System\Collections\Generic\ArrayBuilder.cs"
Link="Common\System\Collections\Generic\ArrayBuilder.cs" />
<Compile Include="..\..\Common\src\System\Collections\Generic\StackArrayBuilder.cs"
Link="Common\System\Collections\Generic\StackArrayBuilder.cs" />
<Compile Include="..\..\Common\src\System\Collections\Generic\StackArrayBuilder8.cs"
Link="Common\System\Collections\Generic\StackArrayBuilder8.cs" />
</ItemGroup>

<ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'windows'">
Expand Down
Loading