常用方法
常用方法
常用方法
常用方法
/** * This method parses a single elseif-statement node. * * @return \PDepend\Source\AST\ASTElseIfStatement * @since 0.9.8 */ private function parseElseIfStatement() { $this->tokenStack->push(); $token = $this->consumeToken(Tokens::T_ELSEIF); $stmt = $this->builder->buildAstElseIfStatement($token->image); $stmt->addChild($this->parseParenthesisExpression()); $this->parseStatementBody($stmt); $this->parseOptionalElseOrElseIfStatement($stmt); return $this->setNodePositionsAndReturn($stmt); }