UNPKG

@neo-one/smart-contract-compiler

Version:

NEO•ONE TypeScript smart contract compiler.

25 lines (23 loc) 944 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ForEachKeyStructuredStorageHelper = void 0; const tslib_1 = require("tslib"); const StructuredStorageBaseHelper_1 = require("./StructuredStorageBaseHelper"); class ForEachKeyStructuredStorageHelper extends StructuredStorageBaseHelper_1.StructuredStorageBaseHelper { constructor(_a) { var { each } = _a, rest = tslib_1.__rest(_a, ["each"]); super(rest); this.each = each; } emit(sb, node, options) { sb.emitHelper(node, options, sb.helpers.forEachStructuredStorage({ type: this.type, each: (innerOptions) => { sb.emitOp(node, 'NIP'); this.each(sb.noPushValueOptions(innerOptions)); }, })); } } exports.ForEachKeyStructuredStorageHelper = ForEachKeyStructuredStorageHelper; //# sourceMappingURL=ForEachKeyStructuredStorageHelper.js.map