PDepend\Source\Language\PHP\AbstractPHPParser::parseAlternativeScopeTermination PHP Method

parseAlternativeScopeTermination() private method

Parses a series of tokens that represent an alternative scope termination.
Since: 0.10.0
private parseAlternativeScopeTermination ( integer $tokenType ) : void
$tokenType integer The token type identifier.
return void
    private function parseAlternativeScopeTermination($tokenType)
    {
        $this->consumeToken($tokenType);
        $this->consumeComments();
        if ($this->tokenizer->peek() === Tokens::T_SEMICOLON) {
            $this->consumeToken(Tokens::T_SEMICOLON);
        } else {
            $this->parseNonePhpCode();
        }
    }
AbstractPHPParser