コード例 #1
0
ファイル: Parser.php プロジェクト: rouffj/pdepend
 /**
  * This method parses the arguments passed to a function- or method-call.
  *
  * @return PHP_Depend_Code_ASTArguments
  * @throws PHP_Depend_Parser_Exception When an error occured during the
  *         parsing process.
  * @since 0.9.6
  */
 private function _parseArguments()
 {
     $this->consumeComments();
     $this->_tokenStack->push();
     $arguments = $this->builder->buildASTArguments();
     $this->consumeToken(self::T_PARENTHESIS_OPEN);
     $this->consumeComments();
     if (self::T_PARENTHESIS_CLOSE !== $this->tokenizer->peek()) {
         $arguments = $this->_parseExpressionList($arguments);
     }
     $this->consumeToken(self::T_PARENTHESIS_CLOSE);
     return $this->_setNodePositionsAndReturn($arguments);
 }
コード例 #2
0
ファイル: Parser.php プロジェクト: Tjorriemorrie/app
 /**
  * This method parses the arguments passed to a function- or method-call.
  *
  * @return PHP_Depend_Code_ASTArguments
  * @throws PHP_Depend_Parser_Exception When an error occured during the
  *         parsing process.
  * @since 0.9.6
  */
 private function _parseArguments()
 {
     $this->_consumeComments();
     return $this->_parseBraceExpression($this->_builder->buildASTArguments(), $this->_consumeToken(self::T_PARENTHESIS_OPEN), self::T_PARENTHESIS_CLOSE);
 }