コード例 #1
0
 /**
  * This method parses a unset-statement.
  *
  * @return \PDepend\Source\AST\ASTUnsetStatement
  * @since  0.9.12
  */
 private function parseUnsetStatement()
 {
     $this->tokenStack->push();
     $this->consumeToken(Tokens::T_UNSET);
     $this->consumeComments();
     $this->consumeToken(Tokens::T_PARENTHESIS_OPEN);
     $stmt = $this->builder->buildAstUnsetStatement();
     $stmt = $this->parseVariableList($stmt);
     $this->consumeToken(Tokens::T_PARENTHESIS_CLOSE);
     $this->parseStatementTermination();
     return $this->setNodePositionsAndReturn($stmt);
 }