Exemple #1
0
 /**
  * This method parses a goto-statement.
  *
  * @return PHP_Depend_Code_ASTGotoStatement
  * @since 0.9.12
  */
 private function parseGotoStatement()
 {
     $this->tokenStack->push();
     $this->consumeToken(self::T_GOTO);
     $this->consumeComments();
     $token = $this->consumeToken(self::T_STRING);
     $this->parseStatementTermination();
     $stmt = $this->builder->buildAstGotoStatement($token->image);
     return $this->setNodePositionsAndReturn($stmt);
 }