@bitloops/bl-transpiler
Version:
The one and only Bitloops Language transpiler
14 lines • 726 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.domainServiceEvaluationError = void 0;
const validationErrors_js_1 = require("./validationErrors.js");
// TODO: check why is this not matching with bitloopsIdentifierValidator
const domainServiceEvaluationError = (node, thisSymbolTable) => {
const errors = [];
const identifier = node.getIdentifierNode();
if (!thisSymbolTable.has(identifier.getIdentifierName()))
errors.push(new validationErrors_js_1.identifierValidationError(identifier.getIdentifierName(), identifier));
return errors;
};
exports.domainServiceEvaluationError = domainServiceEvaluationError;
//# sourceMappingURL=domainServiceEvaluationError.js.map