UNPKG

@neo-one/smart-contract-compiler

Version:

NEO•ONE TypeScript smart contract compiler.

21 lines (19 loc) 702 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NullLiteralCompiler = void 0; const tslib_1 = require("tslib"); const typescript_1 = tslib_1.__importDefault(require("typescript")); const NodeCompiler_1 = require("../NodeCompiler"); class NullLiteralCompiler extends NodeCompiler_1.NodeCompiler { constructor() { super(...arguments); this.kind = typescript_1.default.SyntaxKind.NullKeyword; } visitNode(sb, expr, options) { if (options.pushValue) { sb.emitHelper(expr, options, sb.helpers.wrapNull); } } } exports.NullLiteralCompiler = NullLiteralCompiler; //# sourceMappingURL=NullLiteralCompiler.js.map