@neo-one/smart-contract-compiler
Version:
NEO•ONE TypeScript smart contract compiler.
21 lines (19 loc) • 849 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SysCallInstanceMemberPrimitive = void 0;
const BuiltinInstanceMemberValue_1 = require("../BuiltinInstanceMemberValue");
class SysCallInstanceMemberPrimitive extends BuiltinInstanceMemberValue_1.BuiltinInstanceMemberValue {
constructor(syscall, valueType, type) {
super();
this.syscall = syscall;
this.valueType = valueType;
this.type = type;
}
emit(sb, node, options) {
sb.emitHelper(node, options, sb.helpers.unwrapVal({ type: this.valueType }));
sb.emitSysCall(node, this.syscall);
sb.emitHelper(node, options, sb.helpers.wrapVal({ type: this.type }));
}
}
exports.SysCallInstanceMemberPrimitive = SysCallInstanceMemberPrimitive;
//# sourceMappingURL=SysCallInstanceMemberPrimitive.js.map