1 instantiation of TemporaryArray
Microsoft.CodeAnalysis.CodeStyle (1)
TemporaryArray`1.cs (1)
328
_array = new
TemporaryArray
<T>(in array);
59 references to TemporaryArray
Microsoft.CodeAnalysis.CodeStyle (40)
AbstractUseCollectionInitializerDiagnosticAnalyzer.cs (2)
75
using
var
matchKinds =
TemporaryArray
<TSyntaxKind>.Empty;
AbstractUseObjectInitializerDiagnosticAnalyzer.cs (2)
66
using
var
matchKinds =
TemporaryArray
<TSyntaxKind>.Empty;
IntervalTree`1.cs (9)
110
public void FillWithIntervalsThatOverlapWith<TIntrospector>(int start, int length, ref
TemporaryArray
<T> builder, in TIntrospector introspector)
114
public void FillWithIntervalsThatIntersectWith<TIntrospector>(int start, int length, ref
TemporaryArray
<T> builder, in TIntrospector introspector)
118
public void FillWithIntervalsThatContain<TIntrospector>(int start, int length, ref
TemporaryArray
<T> builder, in TIntrospector introspector)
141
using
var
result =
TemporaryArray
<T>.Empty;
150
using
var
result =
TemporaryArray
<T>.Empty;
158
ref
TemporaryArray
<T> builder, in TIntrospector introspector,
182
ref
TemporaryArray
<T> builder, in TIntrospector introspector,
J\s\src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs\ImmutableArrayExtensions.cs (1)
758
internal static ImmutableArray<T> AddRange<T>(this ImmutableArray<T> self, in
TemporaryArray
<T> items)
NamingStyle.cs (2)
405
using
var
parts =
TemporaryArray
<TextSpan>.Empty;
SimpleIntervalTree`2.cs (3)
55
public void FillWithIntervalsThatOverlapWith(int start, int length, ref
TemporaryArray
<T> builder)
58
public void FillWithIntervalsThatIntersectWith(int start, int length, ref
TemporaryArray
<T> builder)
61
public void FillWithIntervalsThatContain(int start, int length, ref
TemporaryArray
<T> builder)
StringBreaker.cs (3)
16
public static void AddWordParts(string identifier, ref
TemporaryArray
<TextSpan> parts)
19
public static void AddCharacterParts(string identifier, ref
TemporaryArray
<TextSpan> parts)
22
public static void AddParts(string text, bool word, ref
TemporaryArray
<TextSpan> parts)
TemporaryArray`1.cs (10)
75
/// This field is initialized to non-<see langword="null"/> the first time the <see cref="
TemporaryArray
{T}"/>
81
private TemporaryArray(in
TemporaryArray
<T> array)
89
public static
TemporaryArray
<T> Empty => default;
185
public void AddRange(in
TemporaryArray
<T> items)
254
/// Transitions the current <see cref="
TemporaryArray
{T}"/> from inline storage to dynamic storage storage. An
320
private readonly
TemporaryArray
<T> _array;
325
public Enumerator(in
TemporaryArray
<T> array)
352
public static int InlineCapacity =>
TemporaryArray
<T>.InlineCapacity;
354
public static bool HasDynamicStorage(in
TemporaryArray
<T> array)
357
public static int InlineCount(in
TemporaryArray
<T> array)
TemporaryArrayExtensions.cs (8)
13
/// Gets a mutable reference to a <see cref="
TemporaryArray
{T}"/> stored in a <c>using</c> variable.
16
/// <para>This supporting method allows <see cref="
TemporaryArray
{T}"/>, a non-copyable <see langword="struct"/>
37
public static ref
TemporaryArray
<T> AsRef<T>(this in
TemporaryArray
<T> array)
40
public static bool Any<T>(this in
TemporaryArray
<T> array, Func<T, bool> predicate)
51
public static bool All<T>(this in
TemporaryArray
<T> array, Func<T, bool> predicate)
62
public static void AddIfNotNull<T>(this ref
TemporaryArray
<T> array, T? value)
71
public static void AddIfNotNull<T>(this ref
TemporaryArray
<T> array, T? value)
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
AbstractAddExplicitCastCodeFixProvider.cs (2)
82
using
var
actions =
TemporaryArray
<CodeAction>.Empty;
AbstractAliasAmbiguousTypeCodeFixProvider.cs (2)
112
using
var
result =
TemporaryArray
<string>.Empty;
Microsoft.CodeAnalysis.CSharp.CodeStyle (11)
CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (2)
104
using
var
diagnostics =
TemporaryArray
<Diagnostic>.Empty;
CSharpSemanticFacts.cs (5)
203
using
var
builder =
TemporaryArray
<IMethodSymbol>.Empty;
215
using
var
builder =
TemporaryArray
<IMethodSymbol>.Empty;
223
private static void FlattenDeconstructionMethods(DeconstructionInfo deconstruction, ref
TemporaryArray
<IMethodSymbol> builder)
SyntaxTriviaListExtensions.cs (4)
43
using
var
result =
TemporaryArray
<ImmutableArray<SyntaxTrivia>>.Empty;
44
using
var
currentLine =
TemporaryArray
<SyntaxTrivia>.Empty;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
CSharpTypeInferenceService.TypeInferrer.cs (2)
1500
using
var
result =
TemporaryArray
<TypeInferenceInfo>.Empty;
OperatorGenerator.cs (2)
108
using
var
tokens =
TemporaryArray
<SyntaxToken>.Empty;