convertComments.cjs.map 1.04 KB
{"version":3,"names":["module","exports","convertComments","comments","comment","type","range","start","end"],"sources":["../../src/convert/convertComments.cjs"],"sourcesContent":["module.exports = function convertComments(comments) {\n  for (const comment of comments) {\n    if (comment.type === \"CommentBlock\") {\n      comment.type = \"Block\";\n    } else if (comment.type === \"CommentLine\") {\n      comment.type = \"Line\";\n    }\n    // sometimes comments don't get ranges computed,\n    // even with options.ranges === true\n    if (!comment.range) {\n      comment.range = [comment.start, comment.end];\n    }\n  }\n};\n"],"mappings":"AAAAA,MAAM,CAACC,OAAP,GAAiB,SAASC,eAAT,CAAyBC,QAAzB,EAAmC;EAClD,KAAK,MAAMC,OAAX,IAAsBD,QAAtB,EAAgC;IAC9B,IAAIC,OAAO,CAACC,IAAR,KAAiB,cAArB,EAAqC;MACnCD,OAAO,CAACC,IAAR,GAAe,OAAf;IACD,CAFD,MAEO,IAAID,OAAO,CAACC,IAAR,KAAiB,aAArB,EAAoC;MACzCD,OAAO,CAACC,IAAR,GAAe,MAAf;IACD;;IAGD,IAAI,CAACD,OAAO,CAACE,KAAb,EAAoB;MAClBF,OAAO,CAACE,KAAR,GAAgB,CAACF,OAAO,CAACG,KAAT,EAAgBH,OAAO,CAACI,GAAxB,CAAhB;IACD;EACF;AACF,CAbD"}