UNPKG

ifc-expressions

Version:

Parsing and evaluation of IFC expressions

20 lines (19 loc) 595 B
import { Expr0 } from "../Expr0.js"; import { ExprKind } from "../ExprKind.js"; import { ObjectAccessorValue } from "../../value/ObjectAccessorValue.js"; import { Type } from "../../type/Types.js"; export class ElemObjectReferenceExpr extends Expr0 { constructor() { super(ExprKind.REF_ELEMENT); } doEvaluate(ctx) { return ObjectAccessorValue.of(ctx.resolveElemRef()); } buildExprString(builder) { builder.appendString("$element"); } getType() { return Type.IFC_ELEMENT_REF; } } //# sourceMappingURL=ElemObjectReferenceExpr.js.map