all files / dist/binders/structure/base/ StructureDefaultExpressionedBinder.js

100% Statements 24/24
100% Branches 9/9
100% Functions 6/6
100% Lines 21/21
2 statements, 3 branches Ignored     
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 29 30    96× 96×   96×   15× 15× 15× 15×          
"use strict";
var __extends = (this && this.__extends)/* istanbul ignore next */ || function (d, b) {
    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
    function __() { this.constructor = d; }
    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var definitions_1 = require("./../../../definitions");
var expression_1 = require("./../expression");
var base_1 = require("./../../base");
var StructureDefaultExpressionedBinder = (function (_super) {
    __extends(StructureDefaultExpressionedBinder, _super);
    function StructureDefaultExpressionedBinder(structure) {
        _super.call(this);
        this.structure = structure;
    }
    StructureDefaultExpressionedBinder.prototype.getDefaultExpression = function () {
        return this.structure.defaultExpression == null ? null : this.getExpression(this.structure.defaultExpression);
    };
    StructureDefaultExpressionedBinder.prototype.getExpression = function (expression) {
        var def = new definitions_1.ExpressionDefinition();
        var binder = new expression_1.StructureExpressionBinder(expression);
        binder.bind(def);
        return def;
    };
    return StructureDefaultExpressionedBinder;
}(base_1.DefaultExpressionedBinder));
exports.StructureDefaultExpressionedBinder = StructureDefaultExpressionedBinder;
 
//# sourceMappingURL=StructureDefaultExpressionedBinder.js.map