UNPKG

@neo-one/smart-contract-compiler

Version:

NEO•ONE TypeScript smart contract compiler.

22 lines (20 loc) 634 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SysCallValue = void 0; const BuiltinValue_1 = require("../BuiltinValue"); class SysCallValue extends BuiltinValue_1.BuiltinValue { 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.SysCallValue = SysCallValue; //# sourceMappingURL=SysCallValue.js.map