convertComments.cjs 385 B

123456789101112131415
  1. module.exports = function convertComments(comments) {
  2. for (const comment of comments) {
  3. if (comment.type === "CommentBlock") {
  4. comment.type = "Block";
  5. } else if (comment.type === "CommentLine") {
  6. comment.type = "Line";
  7. }
  8. if (!comment.range) {
  9. comment.range = [comment.start, comment.end];
  10. }
  11. }
  12. };
  13. //# sourceMappingURL=convertComments.cjs.map