UNPKG

@neo-one/smart-contract-compiler

Version:

NEO•ONE TypeScript smart contract compiler.

23 lines (21 loc) 786 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RawEnumeratorForEachHelper = void 0; const Helper_1 = require("../Helper"); class RawEnumeratorForEachHelper extends Helper_1.Helper { constructor(options) { super(); this.each = options.each; } emit(sb, node, optionsIn) { const options = sb.pushValueOptions(optionsIn); sb.emitHelper(node, options, sb.helpers.rawIteratorForEachBase({ each: (innerOptions) => { sb.emitSysCall(node, 'Neo.Enumerator.Value'); this.each(sb.noPushValueOptions(innerOptions)); }, })); } } exports.RawEnumeratorForEachHelper = RawEnumeratorForEachHelper; //# sourceMappingURL=RawEnumeratorForEachHelper.js.map