UNPKG

@neo-one/smart-contract-compiler

Version:

NEO•ONE TypeScript smart contract compiler.

22 lines (20 loc) 688 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SysCallMemberValue = void 0; const BuiltinMemberValue_1 = require("../BuiltinMemberValue"); class SysCallMemberValue extends BuiltinMemberValue_1.BuiltinMemberValue { constructor(syscall, type) { super(); this.syscall = syscall; this.type = type; } emit(sb, node, options) { if (!options.pushValue) { return; } sb.emitSysCall(node, this.syscall); sb.emitHelper(node, options, sb.helpers.wrapVal({ type: this.type })); } } exports.SysCallMemberValue = SysCallMemberValue; //# sourceMappingURL=SysCallMemberValue.js.map