UNPKG

vanzy-protect

Version:

Epic Obfuscator Yeahhh

17 lines (16 loc) 700 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.forConditionSection = void 0; const assignmentExpression_1 = require("./assignmentExpression"); const rightExpression_1 = require("./rightExpression"); const variableDeclaration_1 = require("./variableDeclaration"); function forConditionSection(expr) { if (expr.type === 'VariableDeclaration') { return (0, variableDeclaration_1.variableDeclaration)(expr); } else if (expr.type === 'AssignmentExpression') { return (0, assignmentExpression_1.assignmentExpression)(expr); } return (0, rightExpression_1.rightExpression)(expr); } exports.forConditionSection = forConditionSection;