UNPKG

ifc-expressions

Version:

Parsing and evaluation of IFC expressions

23 lines (22 loc) 1.03 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.IfcExpressionErrorListener = void 0; const antlr4ng_1 = require("antlr4ng"); const IfcExpressionUtils_js_1 = require("./util/IfcExpressionUtils.js"); const SyntaxErrorException_js_1 = require("./error/SyntaxErrorException.js"); class IfcExpressionErrorListener extends antlr4ng_1.BaseErrorListener { validationException(validationException) { this.exception = validationException; } syntaxError(recognizer, offendingSymbol, line, column, msg, e) { this.exception = new SyntaxErrorException_js_1.SyntaxErrorException((0, IfcExpressionUtils_js_1.isNullish)(offendingSymbol) ? "[no symbol]" : offendingSymbol.text, line, column, msg); } isErrorOccurred() { return (0, IfcExpressionUtils_js_1.isPresent)(this.exception); } getException() { return this.exception; } } exports.IfcExpressionErrorListener = IfcExpressionErrorListener; //# sourceMappingURL=IfcExpressionErrorListener.js.map