"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const antlr4ts_1 = require("antlr4ts");
const recovermark_1 = require("../recovermark");
const strategyUtil_1 = require("../strategyUtil");
class MySqlErrorStrategy extends antlr4ts_1.DefaultErrorStrategy {
    inErrorRecoveryMode(recognizer) {
        return super.inErrorRecoveryMode(recognizer);
    }
    recover(recognizer, e) {
        strategyUtil_1.StrategyUtil.generateErrorMark(e);
        if (!recovermark_1.Recovermark.isRecover) {
            recovermark_1.Recovermark.isRecover = true;
            strategyUtil_1.StrategyUtil.repair(recognizer, e);
        }
        return super.recover(recognizer, e);
    }
    recoverInline(recognizer) {
        return super.recoverInline(recognizer);
    }
    reportError(recognizer, e) {
        return super.reportError(recognizer, e);
    }
    reportMatch(recognizer) {
        return super.reportMatch(recognizer);
    }
    reset(recognizer) {
        return super.reset(recognizer);
    }
    sync(recognizer) {
        return super.sync(recognizer);
    }
}
exports.MySqlErrorStrategy = MySqlErrorStrategy;
