1"use strict"; 2 3module.exports = function(comments) { 4 for (var i = 0; i < comments.length; i++) { 5 var comment = comments[i]; 6 if (comment.type === "CommentBlock") { 7 comment.type = "Block"; 8 } else if (comment.type === "CommentLine") { 9 comment.type = "Line"; 10 } 11 // sometimes comments don't get ranges computed, 12 // even with options.ranges === true 13 if (!comment.range) { 14 comment.range = [comment.start, comment.end]; 15 } 16 } 17}; 18