Exemple #1
0
 /**
  * This method parses a echo-statement node.
  *
  * @return PHP_Depend_Code_ASTEchoStatement
  * @since 0.9.12
  */
 private function parseEchoStatement()
 {
     $this->tokenStack->push();
     $token = $this->consumeToken(self::T_ECHO);
     $stmt = $this->parseExpressionList($this->builder->buildAstEchoStatement($token->image));
     $this->parseStatementTermination();
     return $this->setNodePositionsAndReturn($stmt);
 }