XmlIncrementalLexer.unexpectedEof

XmlLexerResult unexpectedEof() @safe

Sets the lexer to ERROR state and throws an UNEXPECTED_EOF exception.

This is called when the stream ends before a token is complete.

Throws

XmlException with XmlErrorCode.UNEXPECTED_EOF.