private function topStatementList(StatementBlockNode $node, $terminator = '') {
    $this->matchHidden($node);
    while ($this->currentType !== NULL && $this->currentType !== $terminator) {
      $node->addChild($this->topStatement());
      $this->matchHidden($node);
    }
    $this->matchHidden($node);
    $this->matchDocComment($node, NULL);
  }
private function topStatementList(StatementBlockNode $node, $terminator = '') {
    $this->matchHidden($node);
    while ($this->currentType !== NULL && $this->currentType !== $terminator) {
      $node->addChild($this->topStatement());
      $this->matchHidden($node);
    }
    $this->matchHidden($node);
    $this->matchDocComment($node, NULL);
  }
private function topStatementList ( StatementBlockNode $ node , $ terminator = '' ) { $ this -> matchHidden ( $ node ) ; while ( $ this -> currentType !== NULL && $ this -> currentType !== $ terminator ) { $ node -> addChild ( $ this -> topStatement ( ) ) ; $ this -> matchHidden ( $ node ) ; } $ this -> matchHidden ( $ node ) ; $ this -> matchDocComment ( $ node , NULL ) ; }
Parse a list of top level statements.
@param StatementBlockNode $node Node to append matches to
@param string $terminator Character that ends the statement list
Parse a list of top level statements .