Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
/** * This method parses a switch statement. * * @return \PDepend\Source\AST\ASTSwitchStatement * @since 0.9.8 */ private function parseSwitchStatement() { $this->tokenStack->push(); $this->consumeToken(Tokens::T_SWITCH); $switch = $this->builder->buildAstSwitchStatement(); $switch->addChild($this->parseParenthesisExpression()); $this->parseSwitchStatementBody($switch); return $this->setNodePositionsAndReturn($switch); }