UNPKG

@neo-one/smart-contract-compiler

Version:

NEO•ONE TypeScript smart contract compiler.

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