예제 #1
0
 /**
  * This method parses a global-statement.
  *
  * @return PHP_Depend_Code_ASTGlobalStatement
  * @since 0.9.12
  */
 private function parseGlobalStatement()
 {
     $this->tokenStack->push();
     $this->consumeToken(self::T_GLOBAL);
     $stmt = $this->builder->buildAstGlobalStatement();
     $stmt = $this->parseVariableList($stmt);
     $this->parseStatementTermination();
     return $this->setNodePositionsAndReturn($stmt);
 }