예제 #1
0
 /**
  * Parses a eval-expression node.
  *
  * @return PHP_Depend_Code_ASTEvalExpression
  * @since 0.9.12
  */
 private function parseEvalExpression()
 {
     $this->tokenStack->push();
     $token = $this->consumeToken(self::T_EVAL);
     $expr = $this->builder->buildAstEvalExpression($token->image);
     $expr->addChild($this->parseParenthesisExpression());
     return $this->setNodePositionsAndReturn($expr);
 }