all files / dist/writers/ DecoratorsWriter.js

94.12% Statements 16/17
66.67% Branches 4/6
100% Functions 4/4
93.75% Lines 15/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  13× 13×   13× 13× 13×                
"use strict";
var DecoratorsWriter = (function () {
    function DecoratorsWriter(writer, decoratorWriter) {
        this.writer = writer;
        this.decoratorWriter = decoratorWriter;
    }
    DecoratorsWriter.prototype.write = function (def, flags, separator) {
        var _this = this;
        Eif (separator === void 0) { separator = null; }
        if (def.decorators == null)
            return;
        def.decorators.forEach(function (dec) {
            _this.decoratorWriter.write(dec, flags);
            Eif (separator == null)
                _this.writer.newLine();
            else
                _this.writer.write(separator);
        });
    };
    return DecoratorsWriter;
}());
exports.DecoratorsWriter = DecoratorsWriter;
 
//# sourceMappingURL=DecoratorsWriter.js.map