1 instantiation of ArrayElement
Microsoft.CodeAnalysis (1)
Syntax\SyntaxNodeOrTokenList.cs (1)
357
new
ArrayElement
<GreenNode> {Value = newGreen}
48 references to ArrayElement
Microsoft.CodeAnalysis (48)
Collections\ArrayElement.cs (4)
15
public static implicit operator T(
ArrayElement
<T> element)
32
public static
ArrayElement
<T>[]? MakeElementArray(T[]? items)
39
var array = new
ArrayElement
<T>[items.Length];
49
public static T[]? MakeArray(
ArrayElement
<T>[]? items)
Syntax\GreenNode.cs (2)
925
var array = new
ArrayElement
<GreenNode>[list.Count];
947
var array = new
ArrayElement
<GreenNode>[list.Count];
Syntax\InternalSyntax\SyntaxList.cs (6)
73
var array = new
ArrayElement
<GreenNode>[count];
84
internal static SyntaxList List(
ArrayElement
<GreenNode>[] children)
98
internal abstract void CopyTo(
ArrayElement
<GreenNode>[] array, int offset);
118
var tmp = new
ArrayElement
<GreenNode>[left.SlotCount + right.SlotCount];
125
var tmp = new
ArrayElement
<GreenNode>[left.SlotCount + 1];
133
var tmp = new
ArrayElement
<GreenNode>[rightList.SlotCount + 1];
Syntax\InternalSyntax\SyntaxList.WithLotsOfChildren.cs (3)
16
internal WithLotsOfChildren(
ArrayElement
<GreenNode>[] children)
22
internal WithLotsOfChildren(DiagnosticInfo[]? diagnostics, SyntaxAnnotation[]? annotations,
ArrayElement
<GreenNode>[] children, int[] childOffsets)
48
private static int[] CalculateOffsets(
ArrayElement
<GreenNode>[] children)
Syntax\InternalSyntax\SyntaxList.WithManyChildren.cs (6)
14
internal readonly
ArrayElement
<GreenNode>[] children;
16
internal WithManyChildrenBase(
ArrayElement
<GreenNode>[] children)
22
internal WithManyChildrenBase(DiagnosticInfo[]? diagnostics, SyntaxAnnotation[]? annotations,
ArrayElement
<GreenNode>[] children)
56
internal override void CopyTo(
ArrayElement
<GreenNode>[] array, int offset)
95
internal WithManyChildren(
ArrayElement
<GreenNode>[] children)
100
internal WithManyChildren(DiagnosticInfo[]? diagnostics, SyntaxAnnotation[]? annotations,
ArrayElement
<GreenNode>[] children)
Syntax\InternalSyntax\SyntaxList.WithThreeChildren.cs (1)
55
internal override void CopyTo(
ArrayElement
<GreenNode>[] array, int offset)
Syntax\InternalSyntax\SyntaxList.WithTwoChildren.cs (1)
48
internal override void CopyTo(
ArrayElement
<GreenNode>[] array, int offset)
Syntax\InternalSyntax\SyntaxList`1.cs (1)
128
internal void CopyTo(int offset,
ArrayElement
<GreenNode>[] array, int arrayOffset, int count)
Syntax\InternalSyntax\SyntaxListBuilder.cs (3)
12
private
ArrayElement
<GreenNode?>[] _nodes;
17
_nodes = new
ArrayElement
<GreenNode?>[size];
185
var tmp = new
ArrayElement
<GreenNode>[this.Count];
Syntax\InternalSyntax\SyntaxListPool.cs (3)
14
private
ArrayElement
<SyntaxListBuilder?>[] _freeList = new
ArrayElement
<SyntaxListBuilder?>[10];
82
var tmp = new
ArrayElement
<SyntaxListBuilder?>[_freeList.Length * 2];
Syntax\SyntaxList.SeparatedWithManyChildren.cs (2)
11
private readonly
ArrayElement
<SyntaxNode?>[] _children;
16
_children = new
ArrayElement
<SyntaxNode?>[(green.SlotCount + 1) >> 1];
Syntax\SyntaxList.SeparatedWithManyWeakChildren.cs (2)
13
private readonly
ArrayElement
<WeakReference<SyntaxNode>?>[] _children;
18
_children = new
ArrayElement
<WeakReference<SyntaxNode>?>[(((green.SlotCount + 1) >> 1) - 1)];
Syntax\SyntaxList.WithManyChildren.cs (2)
13
private readonly
ArrayElement
<SyntaxNode?>[] _children;
18
_children = new
ArrayElement
<SyntaxNode?>[green.SlotCount];
Syntax\SyntaxList.WithManyWeakChildren.cs (2)
14
private readonly
ArrayElement
<WeakReference<SyntaxNode>?>[] _children;
25
_children = new
ArrayElement
<WeakReference<SyntaxNode>?>[count];
Syntax\SyntaxList`1.cs (1)
36
var copy = new
ArrayElement
<GreenNode>[nodes.Length];
Syntax\SyntaxListBuilder.cs (4)
12
private
ArrayElement
<GreenNode?>[] _nodes;
17
_nodes = new
ArrayElement
<GreenNode?>[size];
150
var tmp = new
ArrayElement
<GreenNode?>[size];
181
var tmp = new
ArrayElement
<GreenNode>[this.Count];
Syntax\SyntaxNodeOrTokenList.cs (1)
92
var copy = new
ArrayElement
<GreenNode>[nodesAndTokens.Length];
Syntax\SyntaxNodeOrTokenListBuilder.cs (1)
156
var tmp = new
ArrayElement
<GreenNode>[_count];
Syntax\SyntaxTokenList.cs (1)
83
var copy = new
ArrayElement
<GreenNode>[tokens.Length];
Syntax\SyntaxTriviaList.cs (1)
89
var copy = new
ArrayElement
<GreenNode>[trivias.Length];
Syntax\SyntaxTriviaListBuilder.cs (1)
155
var tmp = new
ArrayElement
<GreenNode>[_count];