Automattic\WooCommerce\Vendor\GraphQL\Language\AST

NodeList::reindexpublicWC 1.0

Resets the keys of the stored nodes to contiguous numeric indexes.

Method of the class: NodeList{}

No Hooks.

Returns

null. Nothing (null).

Usage

$NodeList = new NodeList();
$NodeList->reindex(): void;

NodeList::reindex() code WC 10.9.1

public function reindex(): void
{
    $this->nodes = array_values($this->nodes);
}