@bitloops/bl-transpiler
Version:
The one and only Bitloops Language transpiler
9 lines • 448 B
JavaScript
import { identifierValidationError } from './validationErrors.js';
// TODO: check why is this not matching with bitloopsIdentifierValidator
export const domainRuleIdentifierError = (node, thisSymbolTable) => {
const errors = [];
if (!thisSymbolTable.has(node.getIdentifierName()))
errors.push(new identifierValidationError(node.getIdentifierName(), node));
return errors;
};
//# sourceMappingURL=domainRuleIdentifierError.js.map