"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var functionSpecificationToFunction_1 = require("./functionSpecificationToFunction");
var inject_1 = require("./inject");
function reifyRFO(rfo) {
    var fn = functionSpecificationToFunction_1.default(rfo.name || '', rfo.params, rfo.body, rfo.type);
    if (rfo.injectee) {
        inject_1.default.apply(null, [fn].concat(rfo.params));
    }
    return fn;
}
exports.default = reifyRFO;
//# sourceMappingURL=reifyRFO.js.map