UNPKG

@neo-one/smart-contract-compiler

Version:

NEO•ONE TypeScript smart contract compiler.

22 lines (20 loc) 704 B
import { Helper } from '../Helper'; export class RawIteratorForEachKeyHelper extends Helper { constructor(options) { super(); this.each = options.each; this.deserializeKey = options.deserializeKey ?? false; } emit(sb, node, options) { sb.emitHelper(node, options, sb.helpers.rawIteratorForEachBase({ each: (innerOptions) => { sb.emitSysCall(node, 'Neo.Iterator.Key'); if (this.deserializeKey) { sb.emitSysCall(node, 'Neo.Runtime.Deserialize'); } this.each(innerOptions); }, })); } } //# sourceMappingURL=RawIteratorForEachKeyHelper.js.map