UNPKG

@bitloops/bl-transpiler

Version:
24 lines 658 B
"use strict"; 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