assign method
Managed _array__assign; retained excess capacity matches native C.
Implementation
void assign(TreeSitterArray<T> other) {
final source = other.values;
reserve(other.size);
_size = other.size;
_storage.setRange(0, _size, source);
for (var index = _size; index < capacity; index++) {
_storage[index] = null;
}
}