UNPKG

@neo-one/smart-contract-compiler

Version:

NEO•ONE TypeScript smart contract compiler.

18 lines (16 loc) 721 B
import { StructuredStorageBaseHelper } from './StructuredStorageBaseHelper'; export class ForEachStructuredStorageBaseHelper extends StructuredStorageBaseHelper { constructor({ each, ...rest }) { super(rest); this.each = each; } emit(sb, node, optionsIn) { const options = sb.pushValueOptions(optionsIn); sb.emitHelper(node, options, sb.helpers.createIteratorStructuredStorage({ type: this.type })); sb.emitHelper(node, options, sb.helpers.rawIteratorForEachBase({ each: this.each })); if (options.pushValue) { sb.emitHelper(node, options, sb.helpers.wrapUndefined); } } } //# sourceMappingURL=ForEachStructuredStorageBaseHelper.js.map