UNPKG

@neo-one/smart-contract-compiler

Version:

NEO•ONE TypeScript smart contract compiler.

22 lines (20 loc) 749 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BuiltinValue = void 0; const DiagnosticCode_1 = require("../../DiagnosticCode"); const DiagnosticMessage_1 = require("../../DiagnosticMessage"); const types_1 = require("./types"); class BuiltinValue { constructor() { this.types = new Set([types_1.BuiltinType.Value]); } emitValue(sb, node, options) { if (options.setValue) { sb.context.reportError(node, DiagnosticCode_1.DiagnosticCode.InvalidBuiltinModify, DiagnosticMessage_1.DiagnosticMessage.CannotModifyBuiltin); return; } this.emit(sb, node, options); } } exports.BuiltinValue = BuiltinValue; //# sourceMappingURL=BuiltinValue.js.map