protected function validateAttributeOperator(TokenStream $stream, $attr): void
    {
        if (!$stream->test(Token::OPERATOR_TYPE, '=')) {
            throw new SyntaxError(sprintf('The attribute "%s" must be followed by "=" operator', $attr), $stream->getCurrent()->getLine(), $stream->getSourceContext());
        }
    }