UNPKG

ifc-expressions

Version:

Parsing and evaluation of IFC expressions

18 lines (17 loc) 649 B
import { Func } from "../Func.js"; import { FuncArgAny } from "../arg/FuncArgAny.js"; import { ExprEvalSuccessObj } from "../../ExprEvalResult.js"; import { StringValue } from "../../../value/StringValue.js"; import { Type } from "../../../type/Types.js"; export class TOSTRING extends Func { constructor() { super("TOSTRING", [new FuncArgAny(true, "object")]); } calculateResult(callingExpr, evaluatedArguments) { return new ExprEvalSuccessObj(StringValue.of(evaluatedArguments.get("object").toString())); } getReturnType(argumentTypes) { return Type.STRING; } } //# sourceMappingURL=TOSTRING.js.map