UNPKG

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

Version:

NEO•ONE TypeScript smart contract compiler.

16 lines (14 loc) 440 B
import { UnwrapHelper } from './UnwrapHelper'; export class UnwrapCopyStructHelper extends UnwrapHelper { emit(sb, node, options) { if (!options.pushValue) { sb.emitOp(node, 'DROP'); return; } sb.emitPushInt(node, 1); sb.emitOp(node, 'PICKITEM'); sb.emitOp(node, 'VALUES'); sb.emitOp(node, 'NEWSTRUCT'); } } //# sourceMappingURL=UnwrapCopyStructHelper.js.map