コード例 #1
0
ファイル: Parser.php プロジェクト: CobaltBlueDW/oddsandends
 /**
  * This method parses a label-statement.
  *
  * @return PHP_Depend_Code_ASTLabelStatement
  * @since 0.9.12
  */
 private function parseLabelStatement()
 {
     $this->tokenStack->push();
     $token = $this->consumeToken(self::T_STRING);
     $this->consumeComments();
     $this->consumeToken(self::T_COLON);
     return $this->setNodePositionsAndReturn($this->builder->buildAstLabelStatement($token->image));
 }