@bitloops/bl-transpiler
Version:
The one and only Bitloops Language transpiler
24 lines • 658 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isParserErrors = exports.isParserError = void 0;
const types_js_1 = require("../types.js");
const isParserErrors = (value) => {
if (!Array.isArray(value)) {
return false;
}
for (const err of value) {
if (!isParserError(err)) {
return false;
}
}
return true;
};
exports.isParserErrors = isParserErrors;
const isParserError = (value) => {
if (value instanceof types_js_1.ParserSyntacticError) {
return true;
}
return false;
};
exports.isParserError = isParserError;
//# sourceMappingURL=index.js.map