UNPKG

ifc-expressions

Version:

Parsing and evaluation of IFC expressions

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