UNPKG

@neo-one/smart-contract-compiler

Version:

NEO•ONE TypeScript smart contract compiler.

27 lines (25 loc) 1.14 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CreateIterableIteratorStructuredStorageBaseHelper = void 0; const tslib_1 = require("tslib"); const StructuredStorageBaseHelper_1 = require("./StructuredStorageBaseHelper"); class CreateIterableIteratorStructuredStorageBaseHelper extends StructuredStorageBaseHelper_1.StructuredStorageBaseHelper { constructor(_a) { var { handleNext } = _a, rest = tslib_1.__rest(_a, ["handleNext"]); super(rest); this.handleNext = handleNext; } emit(sb, node, options) { if (!options.pushValue) { sb.emitOp(node, 'DROP'); return; } sb.emitHelper(node, options, sb.helpers.createIteratorStructuredStorage({ type: this.type })); sb.emitHelper(node, options, sb.helpers.createIterableIteratorBase({ handleNext: this.handleNext, hasFilter: true, })); } } exports.CreateIterableIteratorStructuredStorageBaseHelper = CreateIterableIteratorStructuredStorageBaseHelper; //# sourceMappingURL=CreateIterableIteratorStructuredStorageBaseHelper.js.map