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

        var dst = Count;

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

        var start = Count;

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