UNPKG

ifc-expressions

Version:

Parsing and evaluation of IFC expressions

13 lines (12 loc) 868 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.WrongFunctionArgumentTypeExceptionMapper = void 0; const ExprEvalResult_js_1 = require("../../expression/ExprEvalResult.js"); const TextSpan_js_1 = require("../../util/TextSpan.js"); class WrongFunctionArgumentTypeExceptionMapper { mapException(exception) { return new ExprEvalResult_js_1.ExprEvalWrongFunctionArgumentTypeErrorObj(exception.message, exception.functionName, exception.argumentName, exception.argumentIndex, exception.expectedType.getName(), exception.actualType.getName(), TextSpan_js_1.TextSpan.of(exception.fromLine, exception.fromColumn + 1, exception.toLine, exception.toColumn)); } } exports.WrongFunctionArgumentTypeExceptionMapper = WrongFunctionArgumentTypeExceptionMapper; //# sourceMappingURL=WrongFunctionArgumentTypeExceptionMapper.js.map