all files / dist/binders/base/class/ ClassConstructorParameterBinder.js

93.33% Statements 14/15
75% Branches 3/4
100% Functions 3/3
93.33% Lines 14/15
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23                 
"use strict";
var definitions_1 = require("./../../../definitions");
var ClassConstructorParameterBinder = (function () {
    function ClassConstructorParameterBinder(baseParameterBinder, decoratableBinder, readonlyableBinder) {
        this.baseParameterBinder = baseParameterBinder;
        this.decoratableBinder = decoratableBinder;
        this.readonlyableBinder = readonlyableBinder;
    }
    ClassConstructorParameterBinder.prototype.bind = function (def) {
        this.baseParameterBinder.bind(def);
        this.decoratableBinder.bind(def);
        this.readonlyableBinder.bind(def);
        def.scope = this.getClassConstructorParameterScope();
        Iif (def.isReadonly && def.scope === definitions_1.ClassConstructorParameterScope.None) {
            def.scope = definitions_1.ClassConstructorParameterScope.Public;
        }
    };
    return ClassConstructorParameterBinder;
}());
exports.ClassConstructorParameterBinder = ClassConstructorParameterBinder;
 
//# sourceMappingURL=ClassConstructorParameterBinder.js.map