Sha256: 208476e639c5994083ad88358298db9a6c874c02c2e90f04257cb70ee31f8a95

Contents?: true

Size: 908 Bytes

Versions: 7

Compression:

Stored size: 908 Bytes

Contents

{"version":3,"names":["convertComments","comments","comment","type","range","start","end"],"sources":["../../src/convert/convertComments.cts"],"sourcesContent":["import type { Comment } from \"@babel/types\";\n\nexport = function convertComments(comments: Comment[]) {\n  for (const comment of comments) {\n    // @ts-expect-error eslint\n    comment.type = comment.type === \"CommentBlock\" ? \"Block\" : \"Line\";\n\n    // sometimes comments don't get ranges computed,\n    // even with options.ranges === true\n\n    // @ts-expect-error eslint\n    comment.range ||= [comment.start, comment.end];\n  }\n};\n"],"mappings":";;iBAES,SAASA,eAAeA,CAACC,QAAmB,EAAE;EACrD,KAAK,MAAMC,OAAO,IAAID,QAAQ,EAAE;IAE9BC,OAAO,CAACC,IAAI,GAAGD,OAAO,CAACC,IAAI,KAAK,cAAc,GAAG,OAAO,GAAG,MAAM;IAMjED,OAAO,CAACE,KAAK,KAAbF,OAAO,CAACE,KAAK,GAAK,CAACF,OAAO,CAACG,KAAK,EAAEH,OAAO,CAACI,GAAG,CAAC;EAChD;AACF,CAAC","ignoreList":[]}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
immosquare-cleaner-0.1.51 node_modules/@babel/eslint-parser/lib/convert/convertComments.cjs.map
immosquare-cleaner-0.1.50 node_modules/@babel/eslint-parser/lib/convert/convertComments.cjs.map
immosquare-cleaner-0.1.49 node_modules/@babel/eslint-parser/lib/convert/convertComments.cjs.map
immosquare-cleaner-0.1.48 node_modules/@babel/eslint-parser/lib/convert/convertComments.cjs.map
immosquare-cleaner-0.1.47 node_modules/@babel/eslint-parser/lib/convert/convertComments.cjs.map
immosquare-cleaner-0.1.46 node_modules/@babel/eslint-parser/lib/convert/convertComments.cjs.map
immosquare-cleaner-0.1.45 node_modules/@babel/eslint-parser/lib/convert/convertComments.cjs.map