@allgemein/expressions
Version:
Library for mango expressions
24 lines • 600 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.OpDesc = void 0;
const ExprDesc_1 = require("./ExprDesc");
const lodash_1 = require("lodash");
class OpDesc extends ExprDesc_1.ExprDesc {
constructor(key, value) {
super();
this.type = 'op';
this._key = key;
this.value = value;
}
get key() {
return (0, lodash_1.isString)(this._key) ? this._key : this._key.key;
}
isOp() {
return true;
}
isGroup() {
return false;
}
}
exports.OpDesc = OpDesc;
//# sourceMappingURL=OpDesc.js.map