@bitloops/bl-transpiler
Version:
The one and only Bitloops Language transpiler
20 lines • 485 B
JavaScript
import { ParserSyntacticError, } from '../types.js';
const isParserErrors = (value) => {
if (!Array.isArray(value)) {
return false;
}
for (const err of value) {
if (!isParserError(err)) {
return false;
}
}
return true;
};
const isParserError = (value) => {
if (value instanceof ParserSyntacticError) {
return true;
}
return false;
};
export { isParserError, isParserErrors };
//# sourceMappingURL=index.js.map