private TokenType SetError(LexerFailReason reason) { _context.SetError(reason, _reader.GetCurrentLine(), _reader.Line, _reader.Column); return TokenType.INVALID; }
internal void SetError(LexerFailReason reason, string source, int ln, int col) { this.Line = ln; this.Column = col; this.CodeText = source; this.FailReason = reason; this.IsOK = false; this.TokenType = TokenType.INVALID; }