{"version":3,"file":"is-on-own-line.cjs","sources":["../../../src/utils/is-on-own-line.ts"],"sourcesContent":["import type { TSESLint, TSESTree } from \"@typescript-eslint/utils\";\n\nexport function isCommentOnOwnLine(\n  sourceCode: TSESLint.SourceCode,\n  comment: TSESTree.BlockComment | TSESTree.LineComment,\n): boolean {\n  const previousToken = sourceCode.getTokenBefore(comment);\n  const nextToken = sourceCode.getTokenAfter(comment);\n\n  return (\n    previousToken?.loc.end.line !== comment.loc?.start.line &&\n    nextToken?.loc.start.line !== comment.loc?.end.line\n  );\n}\n"],"names":[],"mappings":";;AAEO,SAAS,kBAAA,CACd,YACA,OAAA,EACS;AACT,EAAA,MAAM,aAAA,GAAgB,UAAA,CAAW,cAAA,CAAe,OAAO,CAAA;AACvD,EAAA,MAAM,SAAA,GAAY,UAAA,CAAW,aAAA,CAAc,OAAO,CAAA;AAElD,EAAA,OACE,aAAA,EAAe,GAAA,CAAI,GAAA,CAAI,IAAA,KAAS,QAAQ,GAAA,EAAK,KAAA,CAAM,IAAA,IACnD,SAAA,EAAW,GAAA,CAAI,KAAA,CAAM,IAAA,KAAS,OAAA,CAAQ,KAAK,GAAA,CAAI,IAAA;AAEnD;;;;"}