all files / dist/writers/ ReExportWriter.js

100% Statements 16/16
75% Branches 3/4
100% Functions 4/4
100% Lines 16/16
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25  10× 10× 10×                
"use strict";
var ReExportWriter = (function () {
    function ReExportWriter(writer, baseDefinitionWriter, namedImportPartsWriter) {
        this.writer = writer;
        this.baseDefinitionWriter = baseDefinitionWriter;
        this.namedImportPartsWriter = namedImportPartsWriter;
    }
    ReExportWriter.prototype.write = function (def) {
        var _this = this;
        this.baseDefinitionWriter.writeWrap(def, function () {
            _this.writer.write("export ");
            if ((def.namedExports || []).length > 0)
                _this.namedImportPartsWriter.write(def.namedExports);
            else
                _this.writer.write("*");
            _this.writer.write(" from ");
            _this.writer.write("\"" + def.moduleSpecifier + "\";");
        });
    };
    return ReExportWriter;
}());
exports.ReExportWriter = ReExportWriter;
 
//# sourceMappingURL=ReExportWriter.js.map