"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ImportHandler = void 0;
const types_1 = require("../types");
class ImportHandler {
    constructor(parser) {
        this.parser = parser;
    }
    parseStatement() {
        if (this.parser.match(types_1.TokenType.ВОРИД)) {
            return this.parser.importDeclaration();
        }
        if (this.parser.match(types_1.TokenType.СОДИР)) {
            return this.parser.exportDeclaration();
        }
        return null;
    }
}
exports.ImportHandler = ImportHandler;
//# sourceMappingURL=import-handler.js.map