@param int $index

@throws \OutOfBoundsException
513999
public function seek( $index )
    {
        $this->rewind();

        if ( $index < 1 )
        {
            throw new \OutOfBoundsException( 'Bogus position' );
        }

        while ( $this->_lineNumber < $index && null !== $this->current() )
        {
            $this->next();
        }

        if ( null === $this->current() )
        {
            throw new \OutOfBoundsException( 'Bogus position' );
        }
    }
182351
public function insertItem(Node $item, $index) {
    $items = $this->getItems();
    if ($items->isEmpty()) {
      if ($index !== 0) {
        throw new \OutOfBoundsException('index out of bounds');
      }
      $this->append($item);
    }
    else {
      $max_index = count($items) - 1;
      if ($index < 0 || $index > $max_index) {
        throw new \OutOfBoundsException('index out of bounds');
      }
      $items[$index]->before([
        $item,
        Token::comma(),
        Token::space(),
      ]);
    }
    return $this;
  }
1250387
public function remove(string $index): bool
    {
        $this->withIndexFilter($index);

        $deleted = $this->createDeleteBuilder()->execute();

        $this->clearFetchParameters();

        return (int)$deleted > 0;
    }
1074562
public function removeIndex($index)
    {
        if ($this->hasIndex($index)) {
            unset($this->_items[$index]);
            $this->_iterator = null;
            return true;
        }
        return false;
    }
1104340
public function withInserted(int $idx, Element $el): self
    {
        if (count($this->_elements) < $idx || $idx < 0) {
            throw new \OutOfBoundsException("Index $idx is out of bounds.");
        }
        $obj = clone $this;
        array_splice($obj->_elements, $idx, 0, [$el]);
        return $obj;
    }
895757
public function removeContact(int $index): void
    {
        unset($this->contacts[$index]);
        $this->contacts = array_values($this->contacts);
    }
307509
public function set($index, $value)
    {
        if($index >= $this->count())
            throw new OutOfRangeException('Index out of range');

        $this->_collection[$index] = $value;
    }
777989
public function offsetUnset($offset): void
    {
        if (!$this->offsetExists($offset)) {
            throw new \OutOfBoundsException($offset);
        }

        unset($this->data[$offset]);
    }
1257298
public function remove($index)
    {
        if( $index >= count($this->generators) || $index < 0 )
            return;
        
        unset($this->generators[$index]);
        $this->generators = array_values($this->generators);
    }
1123587
public function offsetSet($index, $newval) // [\ArrayAccess]
	{
		if($this->offsetExists($index))
		{
			$this->moveToOffset($index);
			
			$this->worker->data = $newval;
		}
		else if($index == '')
		{
			$this->push($newval);
		}
		else
		{
			throw new OutOfRangeException('Offset invalid or out of range');
		}
	}
202004
public function setAbstractNode( $index, $node )
	{
		if ( is_null( $this->_childs ) )
		{
			throw new IndexOutOfRangeException();
		}

		$this->_childs[ $index ] = $node;
	}
757128
public static function remove(string $index):int
    {
        unset(self::$framework_paths[$index]);
        if (isset(self::$framework_paths[$index])) {
            return (0);
        } else {
            return (1);
        }
    }
172910
public function getStage($index)
    {
        if ( ! isset($this->stages[$index])) {
            throw new \OutOfRangeException("Could not find stage with index {$index}.");
        }

        return $this->stages[$index];
    }
298920
public function remove($index)
    {
        if($index >= $this->count())
            throw new OutOfRangeException('Index out of range');

        array_splice($this->_collection, $index, 1);
    }
689521
public function replacePacket( $index, $packet )
	{
		if( !isset( $this->packetList[$index] ) )
			throw new OutOfRangeException( 'Invalid Packet Index.' );
		$this->packetList[$index]	= $packet;
	}
1308075
public function at( $index ) {
			if ( is_int( $index ) ) {
				if ( $index >= 0 && $index < $this->len ) {
					return $this->items[ $index ];
				} else {
					throw new \browserfs\Exception('Index out of bounds!');
				}
			} else {
				throw new \browserfs\Exception('Invalid argument $index: Expected int');
			}
		}
69934
public function unbound(string $index)
    {
        list($class, $name) = explode('-', $index);
        if (class_exists($class) && ! (new \ReflectionClass($class))->isAbstract()) {
            return new Untargeted($class);
        }

        return new Unbound("{$class}-{$name}");
    }