UNPKG

ifc-expressions

Version:

Parsing and evaluation of IFC expressions

9 lines (8 loc) 628 B
import { ExprEvalWrongFunctionArgumentTypeErrorObj, } from "../../expression/ExprEvalResult.js"; import { TextSpan } from "../../util/TextSpan.js"; export class WrongFunctionArgumentTypeExceptionMapper { mapException(exception) { return new ExprEvalWrongFunctionArgumentTypeErrorObj(exception.message, exception.functionName, exception.argumentName, exception.argumentIndex, exception.expectedType.getName(), exception.actualType.getName(), TextSpan.of(exception.fromLine, exception.fromColumn + 1, exception.toLine, exception.toColumn)); } } //# sourceMappingURL=WrongFunctionArgumentTypeExceptionMapper.js.map