"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.AutoBeRealizeCompiler = void 0;
const AutoBeCompilerInterfaceTemplate_1 = require("../raw/AutoBeCompilerInterfaceTemplate");
const AutoBeCompilerRealizeTemplate_1 = require("../raw/AutoBeCompilerRealizeTemplate");
const AutoBeCompilerTestTemplate_1 = require("../raw/AutoBeCompilerTestTemplate");
const testRealizeProject_1 = require("./testRealizeProject");
const writeRealizeControllers_1 = require("./writeRealizeControllers");
class AutoBeRealizeCompiler {
    constructor(listener) {
        this.listener = listener;
    }
    controller(props) {
        return (0, writeRealizeControllers_1.writeRealizeControllers)(props);
    }
    test(props) {
        return (0, testRealizeProject_1.testRealizeProject)(Object.assign(Object.assign({}, props), { files: Object.assign(Object.assign({}, props.files), AutoBeCompilerRealizeTemplate_1.AutoBeCompilerRealizeTemplate) }), this.listener.test);
    }
    getTemplate() {
        return __awaiter(this, void 0, void 0, function* () {
            return Object.assign(Object.assign(Object.assign({}, AutoBeCompilerInterfaceTemplate_1.AutoBeCompilerInterfaceTemplate), AutoBeCompilerTestTemplate_1.AutoBeCompilerTestTemplate), AutoBeCompilerRealizeTemplate_1.AutoBeCompilerRealizeTemplate);
        });
    }
}
exports.AutoBeRealizeCompiler = AutoBeRealizeCompiler;
//# sourceMappingURL=AutoBeRealizeCompiler.js.map