UNPKG

@neo-one/smart-contract-compiler

Version:

NEO•ONE TypeScript smart contract compiler.

18 lines (16 loc) 466 B
import { Helper } from '../Helper'; export class GetGlobalPropertyHelper extends Helper { constructor(options) { super(); this.property = options.property; } emit(sb, node, options) { if (!options.pushValue) { return; } sb.scope.getGlobal(sb, node, options); sb.emitPushInt(node, this.property); sb.emitOp(node, 'PICKITEM'); } } //# sourceMappingURL=GetGlobalPropertyHelper.js.map