private function _return() {
    $node = new ReturnStatementNode();
    $this->mustMatch(T_RETURN, $node);
    if ($this->tryMatch(';', $node, NULL, TRUE, TRUE) || $this->currentType === T_CLOSE_TAG) {
      return $node;
    }
    $node->addChild($this->expr(), 'expression');
    $this->endStatement($node);
    return $node;
  }
private function _return() {
    $node = new ReturnStatementNode();
    $this->mustMatch(T_RETURN, $node);
    if ($this->tryMatch(';', $node, NULL, TRUE, TRUE) || $this->currentType === T_CLOSE_TAG) {
      return $node;
    }
    $node->addChild($this->expr(), 'expression');
    $this->endStatement($node);
    return $node;
  }
private function _return ( ) { $ node = new ReturnStatementNode ( ) ; $ this -> mustMatch ( T_RETURN , $ node ) ; if ( $ this -> tryMatch ( ';' , $ node , NULL , TRUE , TRUE ) || $ this -> currentType === T_CLOSE_TAG ) { return $ node ; } $ node -> addChild ( $ this -> expr ( ) , 'expression' ) ; $ this -> endStatement ( $ node ) ; return $ node ; }
Parse a return statement.
@return ReturnStatementNode
Parse a return statement .