2 instantiations of TemporaryArray
Microsoft.CodeAnalysis.CodeStyle (2)
src\Compilers\Core\Portable\Collections\TemporaryArray`1.cs (2)
96return new TemporaryArray<T>() 453_array = new TemporaryArray<T>(in array);
65 references to TemporaryArray
Microsoft.CodeAnalysis.CodeStyle (65)
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerDiagnosticAnalyzer.cs (2)
107using var matchKinds = TemporaryArray<TSyntaxKind>.Empty;
src\Analyzers\Core\Analyzers\UseObjectInitializer\AbstractUseObjectInitializerDiagnosticAnalyzer.cs (4)
73using var matchKinds = TemporaryArray<TSyntaxKind>.Empty; 143using var locations = TemporaryArray<Location>.Empty;
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (1)
1014internal static ImmutableArray<T> AddRange<T>(this ImmutableArray<T> self, in TemporaryArray<T> items)
src\Compilers\Core\Portable\Collections\TemporaryArray`1.cs (11)
76/// This field is initialized to non-<see langword="null"/> the first time the <see cref="TemporaryArray{T}"/> 82private TemporaryArray(in TemporaryArray<T> array) 90public static TemporaryArray<T> GetInstance(int capacity) 102public static TemporaryArray<T> Empty => default; 198public void AddRange(in TemporaryArray<T> items) 326/// Transitions the current <see cref="TemporaryArray{T}"/> from inline storage to dynamic storage storage. An 445private readonly TemporaryArray<T> _array; 450public Enumerator(in TemporaryArray<T> array) 477public static int InlineCapacity => TemporaryArray<T>.InlineCapacity; 479public static bool HasDynamicStorage(in TemporaryArray<T> array) 482public static int InlineCount(in TemporaryArray<T> array)
src\Compilers\Core\Portable\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"/> 38public static ref TemporaryArray<T> AsRef<T>(this in TemporaryArray<T> array) 43public static bool Any<T>(this in TemporaryArray<T> array, Func<T, bool> predicate) 54public static bool All<T>(this in TemporaryArray<T> array, Func<T, bool> predicate) 68public static T? SingleOrDefault<T>(this in TemporaryArray<T> array, Func<T, bool> predicate) 89public static T? SingleOrDefault<T, TArg>(this in TemporaryArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 110public static T? FirstOrDefault<T>(this in TemporaryArray<T> array) 113public static T? FirstOrDefault<T, TArg>(this in TemporaryArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 124public static int IndexOf<T, TArg>(this in TemporaryArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 138public static void AddIfNotNull<T>(this ref TemporaryArray<T> array, T? value) 147public static void AddIfNotNull<T>(this ref TemporaryArray<T> array, T? value)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\IIntervalTree`1.cs (1)
39int start, int length, ref TemporaryArray<T> builder,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\ImmutableIntervalTree`1.cs (1)
268int start, int length, ref TemporaryArray<T> builder,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\IntervalTreeAlgorithms`2.cs (5)
23using var result = TemporaryArray<T>.Empty; 50int start, int length, ref TemporaryArray<T> builder, in TIntrospector introspector) 57int start, int length, ref TemporaryArray<T> builder, in TIntrospector introspector) 64int start, int length, ref TemporaryArray<T> builder, in TIntrospector introspector)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\IntervalTreeHelpers.cs (1)
44ref TemporaryArray<T> builder,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\MutableIntervalTree`1.cs (1)
46int start, int length, ref TemporaryArray<T> builder,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\SimpleMutableIntervalTree`2.cs (3)
49public void FillWithIntervalsThatOverlapWith(int start, int length, ref TemporaryArray<T> builder) 52public void FillWithIntervalsThatIntersectWith(int start, int length, ref TemporaryArray<T> builder) 55public void FillWithIntervalsThatContain(int start, int length, ref TemporaryArray<T> builder)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolInfoExtensions.cs (2)
31using var result = TemporaryArray<ISymbol>.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Naming\IdentifierNameParts.cs (5)
30using var parts = TemporaryArray<TextSpan>.Empty; 74private static ImmutableArray<string> CreateWords(in TemporaryArray<TextSpan> parts, string name) 76using var words = TemporaryArray<string>.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (2)
405using var parts = TemporaryArray<TextSpan>.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.cs (2)
64public void Find(ref TemporaryArray<string> result, string value, int? threshold = null) 88ref TemporaryArray<string> result,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (2)
32using var result = TemporaryArray<InterceptsLocationData>.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\StringBreaker.cs (3)
16public static void AddWordParts(string identifier, ref TemporaryArray<TextSpan> parts) 19public static void AddCharacterParts(string identifier, ref TemporaryArray<TextSpan> parts) 22public static void AddParts(string text, bool word, ref TemporaryArray<TextSpan> parts)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.cs (6)
79using var equivalenceVisitors = TemporaryArray<EquivalenceVisitor>.Empty; 80using var getHashCodeVisitors = TemporaryArray<GetHashCodeVisitor>.Empty; 217using var builder = TemporaryArray<INamedTypeSymbol>.Empty;