UNPKG

ifc-expressions

Version:

Parsing and evaluation of IFC expressions

34 lines (33 loc) 937 B
import { isNullish } from "../../util/IfcExpressionUtils.js"; import { Type } from "../../type/Types.js"; export class FuncArg { constructor(required, name, defaultValue) { this._required = required; this._name = name; this._defaultValue = defaultValue; } getType() { return Type.ANY; } /** * For the value provided for a specific invocation of the function, return an appropriate result (maybe some kind of type conversion or type check might happen here) * * @param invocationValue */ transformValue(callingExpr, invocationValue) { return invocationValue; } get required() { return this._required; } get name() { return this._name; } get defaultValue() { return this._defaultValue; } hasDefaultValue() { return !isNullish(this._defaultValue); } } //# sourceMappingURL=FuncArg.js.map