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