vue hello world项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
338 B

3 years ago
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];
}
}
};