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.
16 lines
385 B
16 lines
385 B
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
|