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