2 instantiations of TemporaryArray
Microsoft.CodeAnalysis (2)
Collections\TemporaryArray`1.cs (2)
96
return new
TemporaryArray
<T>()
453
_array = new
TemporaryArray
<T>(in array);
60 references to TemporaryArray
Microsoft.CodeAnalysis (35)
Collections\ImmutableArrayExtensions.cs (1)
1014
internal static ImmutableArray<T> AddRange<T>(this ImmutableArray<T> self, in
TemporaryArray
<T> items)
Collections\TemporaryArray`1.cs (11)
76
/// This field is initialized to non-<see langword="null"/> the first time the <see cref="
TemporaryArray
{T}"/>
82
private TemporaryArray(in
TemporaryArray
<T> array)
90
public static
TemporaryArray
<T> GetInstance(int capacity)
102
public static
TemporaryArray
<T> Empty => default;
198
public void AddRange(in
TemporaryArray
<T> items)
326
/// Transitions the current <see cref="
TemporaryArray
{T}"/> from inline storage to dynamic storage storage. An
445
private readonly
TemporaryArray
<T> _array;
450
public Enumerator(in
TemporaryArray
<T> array)
477
public static int InlineCapacity =>
TemporaryArray
<T>.InlineCapacity;
479
public static bool HasDynamicStorage(in
TemporaryArray
<T> array)
482
public static int InlineCount(in
TemporaryArray
<T> array)
Collections\TemporaryArrayExtensions.cs (13)
14
/// Gets a mutable reference to a <see cref="
TemporaryArray
{T}"/> stored in a <c>using</c> variable.
17
/// <para>This supporting method allows <see cref="
TemporaryArray
{T}"/>, a non-copyable <see langword="struct"/>
38
public static ref
TemporaryArray
<T> AsRef<T>(this in
TemporaryArray
<T> array)
43
public static bool Any<T>(this in
TemporaryArray
<T> array, Func<T, bool> predicate)
54
public static bool All<T>(this in
TemporaryArray
<T> array, Func<T, bool> predicate)
68
public static T? SingleOrDefault<T>(this in
TemporaryArray
<T> array, Func<T, bool> predicate)
89
public static T? SingleOrDefault<T, TArg>(this in
TemporaryArray
<T> array, Func<T, TArg, bool> predicate, TArg arg)
110
public static T? FirstOrDefault<T>(this in
TemporaryArray
<T> array)
113
public static T? FirstOrDefault<T, TArg>(this in
TemporaryArray
<T> array, Func<T, TArg, bool> predicate, TArg arg)
124
public static int IndexOf<T, TArg>(this in
TemporaryArray
<T> array, Func<T, TArg, bool> predicate, TArg arg)
138
public static void AddIfNotNull<T>(this ref
TemporaryArray
<T> array, T? value)
147
public static void AddIfNotNull<T>(this ref
TemporaryArray
<T> array, T? value)
Collections\TopologicalSort.cs (6)
14
internal delegate void TopologicalSortAddSuccessors<TNode>(ref
TemporaryArray
<TNode> builder, TNode node);
38
/// <param name="addSuccessors">A function that adds successor nodes to a provided <see cref="
TemporaryArray
{TNode}"/>.</param>
50
using
var
successors =
TemporaryArray
<TNode>.Empty;
105
using
var
successors =
TemporaryArray
<TNode>.Empty;
Compilation\Compilation.cs (2)
3779
using
var
builder =
TemporaryArray
<AssemblyIdentity>.Empty;
DiagnosticAnalyzer\AnalyzerDriver.cs (2)
1139
using
var
builder =
TemporaryArray
<Diagnostic>.Empty;
Microsoft.CodeAnalysis.CSharp (11)
Binder\DecisionDagBuilder.cs (4)
135
using
var
builder = TemporaryArray<StateForCase>.Empty;
148
using
var
builder = TemporaryArray<StateForCase>.GetInstance(switchSections.Length);
173
using
var
builder = TemporaryArray<StateForCase>.GetInstance(switchArms.Length);
820
using
var
workList = TemporaryArray<DagState>.Empty;
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (2)
1357
using
var
uninst1 = TemporaryArray<TypeSymbol>.Empty;
1358
using
var
uninst2 = TemporaryArray<TypeSymbol>.Empty;
Binder\Semantics\OverloadResolution\OverloadResolution.cs (4)
2453
using (
var
uninst1 = TemporaryArray<TypeSymbol>.Empty)
2454
using (
var
uninst2 = TemporaryArray<TypeSymbol>.Empty)
2807
using
var
allTypeArgs1 = TemporaryArray<TypeSymbol>.Empty;
2808
using
var
allTypeArgs2 = TemporaryArray<TypeSymbol>.Empty;
Lowering\LocalRewriter\LocalRewriter_Block.cs (1)
35
var
additionalLocals = TemporaryArray<LocalSymbol>.Empty;
Microsoft.CodeAnalysis.UnitTests (14)
Collections\TemporaryArrayTests.cs (13)
26
using
var
array = TemporaryArray<int>.Empty;
33
using
var
array = TemporaryArray<int>.Empty;
43
using
var
array = TemporaryArray<int>.Empty;
91
var
array = TemporaryArray<int>.Empty;
103
using
var
array = TemporaryArray<int>.Empty;
133
using
var
array = TemporaryArray<int>.Empty;
153
using
var
array = TemporaryArray<int>.Empty;
173
using
var
array = TemporaryArray<int>.Empty;
195
using
var
array = TemporaryArray<int>.Empty;
225
using
var
array = TemporaryArray<int>.Empty;
275
using
var
array = TemporaryArray<int>.Empty;
295
using
var
array = TemporaryArray<int>.Empty;
309
using
var
array = TemporaryArray<int>.Empty;
Collections\TopologicalSortTests.cs (1)
215
using
var
successors = TemporaryArray<T>.Empty;