Files
supplier-dispatch-h5/node_modules/@babel/eslint-parser/lib/convert/convertComments.cjs
2023-08-11 10:45:20 +08:00

15 lines
384 B
JavaScript

module.exports = function convertComments(comments) {
for (const comment of comments) {
if (comment.type === "CommentBlock") {
comment.type = "Block";
} else if (comment.type === "CommentLine") {
comment.type = "Line";
}
if (!comment.range) {
comment.range = [comment.start, comment.end];
}
}
};
//# sourceMappingURL=convertComments.cjs.map