UNPKG

@neo-one/smart-contract-compiler

Version:

NEO•ONE TypeScript smart contract compiler.

20 lines (18 loc) 592 B
import { Helper } from '../Helper'; export class RawEnumeratorReduceHelper extends Helper { constructor(options) { super(); this.each = options.each; } emit(sb, node, options) { sb.emitHelper(node, options, sb.helpers.rawIteratorReduceBase({ each: (innerOptions) => { sb.emitOp(node, 'SWAP'); sb.emitSysCall(node, 'Neo.Enumerator.Value'); sb.emitOp(node, 'SWAP'); this.each(innerOptions); }, })); } } //# sourceMappingURL=RawEnumeratorReduceHelper.js.map