private function arrayPairList(ArrayNode $node, $terminator) {
    $elements = new CommaListNode();
    do {
      if ($this->currentType === $terminator) {
        break;
      }
      $this->matchHidden($elements);
      $elements->addChild($this->arrayPair());
    } while ($this->tryMatch(',', $elements, NULL, TRUE));
    $node->addChild($elements, 'elements');
  }
private function arrayPairList(ArrayNode $node, $terminator) {
    $elements = new CommaListNode();
    do {
      if ($this->currentType === $terminator) {
        break;
      }
      $this->matchHidden($elements);
      $elements->addChild($this->arrayPair());
    } while ($this->tryMatch(',', $elements, NULL, TRUE));
    $node->addChild($elements, 'elements');
  }
private function arrayPairList ( ArrayNode $ node , $ terminator ) { $ elements = new CommaListNode ( ) ; do { if ( $ this -> currentType === $ terminator ) { break ; } $ this -> matchHidden ( $ elements ) ; $ elements -> addChild ( $ this -> arrayPair ( ) ) ; } while ( $ this -> tryMatch ( ',' , $ elements , NULL , TRUE ) ) ; $ node -> addChild ( $ elements , 'elements' ) ; }
Parse array pair list.
@param ArrayNode $node the parent ArrayNode
@param int|string $terminator Token type that ends the pair list
Parse array pair list .