UNPKG

@neo-one/smart-contract-compiler

Version:

NEO•ONE TypeScript smart contract compiler.

29 lines (27 loc) 988 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ContinueHelper = void 0; const tslib_1 = require("tslib"); const constants = tslib_1.__importStar(require("../../../constants")); const Helper_1 = require("../Helper"); class ContinueHelper extends Helper_1.Helper { emit(sb, node, options) { let pc = options.continuePC; if (pc === undefined) { sb.context.reportUnsupported(node); } else { if (options.finallyPC !== undefined) { sb.emitPushInt(node, constants.FINALLY_COMPLETION); } sb.emitPushInt(node, constants.CONTINUE_COMPLETION); if (options.finallyPC !== undefined) { pc = options.finallyPC; sb.emitPushInt(node, constants.FINALLY_COMPLETION); } sb.emitJmp(node, 'JMP', pc); } } } exports.ContinueHelper = ContinueHelper; //# sourceMappingURL=ContinueHelper.js.map