All files / src/node-groups DebugProtectionNodesGroup.js

71.43% Statements 10/14
40% Branches 2/5
100% Functions 1/1
71.43% Lines 10/14
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22  1x 1x 1x 1x 1x   16x   8x 8x 8x                 1x  
E"use strict";
const DebugProtectionFunctionCallNode_1 = require("../custom-nodes/debug-protection-nodes/DebugProtectionFunctionCallNode");
const DebugProtectionFunctionIntervalNode_1 = require("../custom-nodes/debug-protection-nodes/DebugProtectionFunctionIntervalNode");
const DebugProtectionFunctionNode_1 = require("../custom-nodes/debug-protection-nodes/DebugProtectionFunctionNode");
const NodesGroup_1 = require('./NodesGroup');
const Utils_1 = require('../Utils');
class DebugProtectionNodesGroup extends NodesGroup_1.NodesGroup {
    constructor(options) {
        super(options);
        this.debugProtectionFunctionIdentifier = Utils_1.Utils.getRandomVariableName();
        if (!this.options.get('debugProtection')) {
            return;
        }
        this.nodes.set('debugProtectionFunctionNode', new DebugProtectionFunctionNode_1.DebugProtectionFunctionNode(this.debugProtectionFunctionIdentifier, this.options));
        this.nodes.set('debugProtectionFunctionCallNode', new DebugProtectionFunctionCallNode_1.DebugProtectionFunctionCallNode(this.debugProtectionFunctionIdentifier, this.options));
        if (this.options.get('debugProtectionInterval')) {
            this.nodes.set('debugProtectionFunctionIntervalNode', new DebugProtectionFunctionIntervalNode_1.DebugProtectionFunctionIntervalNode(this.debugProtectionFunctionIdentifier, this.options));
        }
    }
}
exports.DebugProtectionNodesGroup = DebugProtectionNodesGroup;
//# sourceMappingURL=DebugProtectionNodesGroup.js.map