@bitloops/bl-transpiler
Version:
The one and only Bitloops Language transpiler
12 lines • 513 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.errorIdentifierError = void 0;
const index_js_1 = require("./index.js");
const errorIdentifierError = (node, thisSymbolTable) => {
const errors = [];
if (!thisSymbolTable.has(node.getIdentifierName()))
errors.push(new index_js_1.identifierValidationError(node.getIdentifierName(), node));
return errors;
};
exports.errorIdentifierError = errorIdentifierError;
//# sourceMappingURL=errorIdentifierError.js.map