UNPKG

@neo-one/smart-contract-compiler-esnext-esm

Version:

NEO•ONE TypeScript smart contract compiler.

20 lines (18 loc) 633 B
import { Helper } from '../Helper'; const doNothing = () => { }; export class CreateEnumeratorIterableIteratorHelper extends Helper { constructor(options) { super(); this.mapValue = options.mapValue === undefined ? doNothing : options.mapValue; } emit(sb, node, options) { sb.emitHelper(node, options, sb.helpers.createIterableIteratorBase({ handleNext: (innerOptions) => { sb.emitSysCall(node, 'Neo.Enumerator.Value'); this.mapValue(innerOptions); }, })); } } //# sourceMappingURL=CreateEnumeratorIterableIteratorHelper.js.map