@neo-one/smart-contract-compiler
Version:
NEO•ONE TypeScript smart contract compiler.
18 lines (16 loc) • 478 B
JavaScript
import { BuiltinValue } from '../BuiltinValue';
export class SysCallValue extends 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 }));
}
}
//# sourceMappingURL=SysCallValue.js.map