コード例 #1
0
ファイル: Parser.php プロジェクト: CobaltBlueDW/oddsandends
 /**
  * Parses any expression that is surrounded by an opening and a closing
  * parenthesis
  *
  * @return PHP_Depend_Code_ASTExpression
  * @since 0.9.8
  */
 private function parseParenthesisExpression()
 {
     $this->tokenStack->push();
     $this->consumeComments();
     $expr = $this->builder->buildAstExpression();
     $expr = $this->parseBraceExpression($expr, $this->consumeToken(self::T_PARENTHESIS_OPEN), self::T_PARENTHESIS_CLOSE);
     return $this->setNodePositionsAndReturn($expr);
 }