src/Language/Parser.php
protected function skip($type)
    {
        if ($match = ($this->token->getType() === $type)) {
            $this->advance();
        }

        return $match;
    }
protected function skip($type)
    {
        if ($match = ($this->token->getType() === $type)) {
            $this->advance();
        }

        return $match;
    }
protected function skip ( $ type ) { if ( $ match = ( $ this -> token -> getType ( ) === $ type ) ) { $ this -> advance ( ) ; } return $ match ; }
If the next token is of the given kind, return true after advancing the
parser. Otherwise, do not change the parser state and return false.

@param int $type

@return bool
If the next token is of the given kind return true after advancing the parser . Otherwise do not change the parser state and return false .