ifc-expressions
Advanced tools
Comparing version 2.0.1-beta.4 to 2.0.1-beta.5
@@ -37,3 +37,3 @@ "use strict"; | ||
const propertyName = propertyNameVal.stringValue; | ||
const resultingObjectAccessor = accessorFun(propertyName); | ||
const resultingObjectAccessor = accessorFun.call(objectRef, propertyName); | ||
if ((0, IfcExpressionUtils_js_1.isNullish)(resultingObjectAccessor)) { | ||
@@ -40,0 +40,0 @@ return new ExprEvalResult_js_1.ExprEvalFunctionEvaluationObjectNotFoundErrorObj(ExprKind_js_1.ExprKind.FUNCTION, ExprEvalResult_js_1.ExprEvalStatus.IFC_PROPERTY_NOT_FOUND, `No ifc property found with name '${propertyName}'`, this.getName(), propertyName, callingExpr.getTextSpan()); |
@@ -24,3 +24,3 @@ "use strict"; | ||
if (typeof accessorFun === "function") { | ||
const resultingObjectAccessor = accessorFun(); | ||
const resultingObjectAccessor = accessorFun.call(objectRef); | ||
if ((0, IfcExpressionUtils_js_1.isNullish)(resultingObjectAccessor)) { | ||
@@ -27,0 +27,0 @@ return new ExprEvalResult_js_1.ExprEvalFunctionEvaluationObjectNotFoundErrorObj(ExprKind_js_1.ExprKind.FUNCTION, ExprEvalResult_js_1.ExprEvalStatus.IFC_TYPE_OBJECT_NOT_FOUND, `No type object found`, this.getName(), "[Type of IFC element]", callingExpr.getTextSpan()); |
@@ -34,3 +34,3 @@ import { Func } from "../Func.js"; | ||
const propertyName = propertyNameVal.stringValue; | ||
const resultingObjectAccessor = accessorFun(propertyName); | ||
const resultingObjectAccessor = accessorFun.call(objectRef, propertyName); | ||
if (isNullish(resultingObjectAccessor)) { | ||
@@ -37,0 +37,0 @@ return new ExprEvalFunctionEvaluationObjectNotFoundErrorObj(ExprKind.FUNCTION, ExprEvalStatus.IFC_PROPERTY_NOT_FOUND, `No ifc property found with name '${propertyName}'`, this.getName(), propertyName, callingExpr.getTextSpan()); |
@@ -21,3 +21,3 @@ import { Func } from "../Func.js"; | ||
if (typeof accessorFun === "function") { | ||
const resultingObjectAccessor = accessorFun(); | ||
const resultingObjectAccessor = accessorFun.call(objectRef); | ||
if (isNullish(resultingObjectAccessor)) { | ||
@@ -24,0 +24,0 @@ return new ExprEvalFunctionEvaluationObjectNotFoundErrorObj(ExprKind.FUNCTION, ExprEvalStatus.IFC_TYPE_OBJECT_NOT_FOUND, `No type object found`, this.getName(), "[Type of IFC element]", callingExpr.getTextSpan()); |
{ | ||
"name": "ifc-expressions", | ||
"version": "2.0.1-beta.4", | ||
"version": "2.0.1-beta.5", | ||
"description": "Parsing and evaluation of IFC expressions", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/IfcExpression.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1717966