UNPKG

ifc-expressions

Version:

Parsing and evaluation of IFC expressions

22 lines (21 loc) 634 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NotExpr = void 0; const Expr1_js_1 = require("../Expr1.js"); const ExprKind_js_1 = require("../ExprKind.js"); class NotExpr extends Expr1_js_1.Expr1 { constructor(sub) { super(ExprKind_js_1.ExprKind.NOT, sub); } calculateResult(ctx, localCtx, subExpressionResult) { return subExpressionResult.not(); } buildExprString(builder) { builder.appendString("!").appendExpr(this.sub); } getType() { return this.sub.getType(); } } exports.NotExpr = NotExpr; //# sourceMappingURL=NotExpr.js.map