{"version":3,"sources":["https://lively-kernel.org/lively4/swd21-croquet/src/external/eslint/babylon-to-espree7/convertComments.js"],"names":["convertComments","comments","i","length","comment","type","range","start","end"],"mappings":";;;AAAO,WAASA,eAAT,CAAyBC,QAAzB,EAAmC;AACxC,SAAK,IAAIC,IAAI,CAAb,EAAgBA,IAAID,SAASE,MAA7B,EAAqCD,GAArC,EAA0C;AACxC,UAAIE,UAAUH,SAASC,CAAT,CAAd;AACA,UAAIE,QAAQC,IAAR,KAAiB,cAArB,EAAqC;AACnCD,gBAAQC,IAAR,GAAe,OAAf;AACD,OAFD,MAEO,IAAID,QAAQC,IAAR,KAAiB,aAArB,EAAoC;AACzCD,gBAAQC,IAAR,GAAe,MAAf;AACD;AACD;AACA;AACA,UAAI,CAACD,QAAQE,KAAb,EAAoB;AAClBF,gBAAQE,KAAR,GAAgB,CAACF,QAAQG,KAAT,EAAgBH,QAAQI,GAAxB,CAAhB;AACD;AACF;AACF;;6BAdeR,e","file":"convertComments.js","sourcesContent":["export function convertComments(comments) {\n  for (var i = 0; i < comments.length; i++) {\n    var comment = comments[i];\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"]}