src/POData/UriProcessor/QueryProcessor/ExpressionParser/ExpressionLexer.php
/**
     * Validates the current token is of the specified kind
     * 
     * @param ExpressionTokenId $tokenId Expected token kind
     * 
     * @return void
     * 
     * @throws ODataException if current token is not of the 
     *                        specified kind.
     */
Validates the current token is of the specified kind

@param ExpressionTokenId $tokenId Expected token kind

@return void

@throws ODataException if current token is not of the
specified kind.
Validates the current token is of the specified kind @param ExpressionTokenId $tokenId Expected token kind @return void @throws ODataException if current token is not of the specified kind .
public function validateToken($tokenId)
    {
        if ($this->_token->Id != $tokenId) {
            $this->_parseError(
                Messages::expressionLexerSyntaxError(
                    $this->_textPos
                )
            );
        }
    }
public function validateToken ( $ tokenId ) { if ( $ this -> _token -> Id != $ tokenId ) { $ this -> _parseError ( Messages :: expressionLexerSyntaxError ( $ this -> _textPos ) ) ; } }
Validates the current token is of the specified kind
Validates the current token is of the specified kind