Exemplo n.º 1
0
        public void AddRange(SyntaxList<SyntaxNode> list, int offset, int count)
        {
            if (nodes == null || this.Count + count > nodes.Length)
            {
                this.Grow(Count + count);
            }

            var dst = this.Count;
            for (int i = offset, limit = offset + count; i < limit; i++)
            {
                this.nodes[dst].Value = list.ItemInternal(i).Green;
                dst++;
            }


            int start = Count;
            Count += count;
            Validate(start, Count);
        }