UNPKG

ifc-expressions

Version:

Parsing and evaluation of IFC expressions

20 lines (19 loc) 599 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 PropObjectReferenceExpr extends Expr0 { constructor() { super(ExprKind.REF_PROPERTY); } doEvaluate(ctx) { return new ObjectAccessorValue(ctx.resolvePropRef()); } buildExprString(builder) { builder.appendString("$property"); } getType() { return Type.IFC_PROPERTY_REF; } } //# sourceMappingURL=PropObjectReferenceExpr.js.map