{"version":3,"file":"detect.overflow.cjs","sources":["../../../../src/rules/limit-multi-line-comments/detect.overflow.ts"],"sourcesContent":["import type { RuleContext } from \"@typescript-eslint/utils/ts-eslint\";\n\nimport type { Context } from \"../../typings.context.js\";\nimport { isLineOverflowing } from \"../../utils/is-line-overflowing.js\";\n\nimport type { MultilineBlock } from \"./typings.block.js\";\n\nexport function detectOverflowInMultilineBlocks(\n  _ruleContext: RuleContext<string, unknown[]>,\n  context: Context,\n  blocks: MultilineBlock[],\n) {\n  const problematicBlocks = [] as MultilineBlock[];\n\n  // ... and then we can go through each block to determine if it violates\n  // our rule to mark it as fixable using logic similar to the single-line\n  // rule.\n  for (const block of blocks) {\n    for (const line of block.lines) {\n      if (line && isLineOverflowing(line, context)) {\n        problematicBlocks.push(block);\n        break;\n      }\n    }\n  }\n\n  return problematicBlocks;\n}\n"],"names":["isLineOverflowing"],"mappings":";;;;AAOO,SAAS,+BAAA,CACd,YAAA,EACA,OAAA,EACA,MAAA,EACA;AACA,EAAA,MAAM,oBAAoB,EAAC;AAK3B,EAAA,KAAA,MAAW,SAAS,MAAA,EAAQ;AAC1B,IAAA,KAAA,MAAW,IAAA,IAAQ,MAAM,KAAA,EAAO;AAC9B,MAAA,IAAI,IAAA,IAAQA,mCAAA,CAAkB,IAAA,EAAM,OAAO,CAAA,EAAG;AAC5C,QAAA,iBAAA,CAAkB,KAAK,KAAK,CAAA;AAC5B,QAAA;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAEA,EAAA,OAAO,iBAAA;AACT;;;;"}