ifc-expressions
Version:
Parsing and evaluation of IFC expressions
18 lines (17 loc) • 474 B
JavaScript
import { Expr1 } from "../Expr1.js";
import { ExprKind } from "../ExprKind.js";
export class NotExpr extends Expr1 {
constructor(sub) {
super(ExprKind.NOT, sub);
}
calculateResult(ctx, localCtx, subExpressionResult) {
return subExpressionResult.not();
}
buildExprString(builder) {
builder.appendString("!").appendExpr(this.sub);
}
getType() {
return this.sub.getType();
}
}
//# sourceMappingURL=NotExpr.js.map