awv3
Version:
⚡ AWV3 embedded CAD
37 lines (29 loc) • 755 B
JavaScript
import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
var _class, _temp;
import Expr from './expr';
var NameConstant = (_temp = _class =
/*#__PURE__*/
function (_Expr) {
_inheritsLoose(NameConstant, _Expr);
function NameConstant() {
return _Expr.apply(this, arguments) || this;
}
var _proto = NameConstant.prototype;
_proto.unparse = function unparse() {
switch (this.value) {
case undefined:
return 'VOID';
case false:
return 'FALSE';
case true:
return 'TRUE';
}
};
return NameConstant;
}(Expr), Object.defineProperty(_class, "_fields", {
configurable: true,
enumerable: true,
writable: true,
value: ['value']
}), _temp);
export { NameConstant as default };