all files / dist/binders/base/file/ FileBinder.js

77.78% Statements 14/18
0% Branches 0/4
75% Functions 3/4
77.78% Lines 14/18
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 26 27 28  32× 32×   32× 32× 32× 32× 32× 32×                        
"use strict";
var definitions_1 = require("./../../../definitions");
var FileBinder = (function () {
    function FileBinder(baseDefinitionBinder, moduledBinder) {
        this.baseDefinitionBinder = baseDefinitionBinder;
        this.moduledBinder = moduledBinder;
    }
    FileBinder.prototype.bind = function (def) {
        this.baseDefinitionBinder.bind(def);
        def.fileName = this.getFileName();
        def.defaultExportExpression = this.getDefaultExportExpression();
        def.imports = this.getImports();
        def.reExports = this.getReExports();
        this.moduledBinder.bind(def, function (childDef) {
            if (childDef instanceof definitions_1.ImportDefinition) {
                def.imports.push(childDef);
            }
            else if (childDef instanceof definitions_1.ReExportDefinition) {
                def.reExports.push(childDef);
            }
        });
    };
    return FileBinder;
}());
exports.FileBinder = FileBinder;
 
//# sourceMappingURL=FileBinder.js.map