UNPKG

ifc-expressions

Version:

Parsing and evaluation of IFC expressions

22 lines (21 loc) 876 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TOSTRING = void 0; const Func_js_1 = require("../Func.js"); const FuncArgAny_js_1 = require("../arg/FuncArgAny.js"); const ExprEvalResult_js_1 = require("../../ExprEvalResult.js"); const StringValue_js_1 = require("../../../value/StringValue.js"); const Types_js_1 = require("../../../type/Types.js"); class TOSTRING extends Func_js_1.Func { constructor() { super("TOSTRING", [new FuncArgAny_js_1.FuncArgAny(true, "object")]); } calculateResult(callingExpr, evaluatedArguments) { return new ExprEvalResult_js_1.ExprEvalSuccessObj(StringValue_js_1.StringValue.of(evaluatedArguments.get("object").toString())); } getReturnType(argumentTypes) { return Types_js_1.Type.STRING; } } exports.TOSTRING = TOSTRING; //# sourceMappingURL=TOSTRING.js.map