all files / dist/definitions/interface/ InterfaceMethodDefinition.js

100% Statements 19/19
100% Branches 7/7
100% Functions 5/5
100% Lines 16/16
2 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    10×            
"use strict";
var __extends = (this && this.__extends)/* istanbul ignore next */ || function (d, b) {
    for (var p in b) Eif (b.hasOwnProperty(p)) d[p] = b[p];
    function __() { this.constructor = d; }
    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var factories_1 = require("./../../factories");
var base_1 = require("./../base");
var InterfaceMethodDefinition = (function (_super) {
    __extends(InterfaceMethodDefinition, _super);
    function InterfaceMethodDefinition() {
        _super.apply(this, arguments);
    }
    InterfaceMethodDefinition.prototype.addParameter = function (structure) {
        var def = new factories_1.StructureFactory().getInterfaceMethodParameter(structure);
        this.parameters.push(def);
        return def;
    };
    return InterfaceMethodDefinition;
}(base_1.BaseFunctionDefinition));
exports.InterfaceMethodDefinition = InterfaceMethodDefinition;
 
//# sourceMappingURL=InterfaceMethodDefinition.js.map