{"version":3,"file":"util.declaration-scope-analyzer.mjs","sources":["../../../../../src/rules/css/grouped-declarations/util.declaration-scope-analyzer.ts"],"sourcesContent":["import type { TSESTree } from \"@typescript-eslint/utils\";\nimport type { RuleContext } from \"@typescript-eslint/utils/ts-eslint\";\n\nimport type { MessageIds, Options } from \"./_rule\";\nimport { reportDeclarationOrderViolations } from \"./rule.declaration-order-violation\";\nimport { reportGroupOrderViolations } from \"./rule.group-order-violation\";\nimport type { DeclarationScope } from \"./util.extract-declaration-scopes\";\n\nexport function makeDeclarationScopeAnalyzer(\n  context: RuleContext<MessageIds, Options>,\n  node: TSESTree.TaggedTemplateExpression,\n): (scope: DeclarationScope) => void {\n  return function analyzeDeclarationScope(scope: DeclarationScope) {\n    reportGroupOrderViolations(context, node, scope);\n    reportDeclarationOrderViolations(context, node, scope);\n\n    // Recursively analyze all nested scopes of the current scope\n    for (const nestedScope of scope.scopes) {\n      analyzeDeclarationScope(nestedScope);\n    }\n  };\n}\n"],"names":[],"mappings":";;;AAQO,SAAS,4BAAA,CACd,SACA,IAAA,EACmC;AACnC,EAAA,OAAO,SAAS,wBAAwB,KAAA,EAAyB;AAC/D,IAAA,0BAAA,CAA2B,OAAA,EAAS,MAAM,KAAK,CAAA;AAC/C,IAAA,gCAAA,CAAiC,OAAA,EAAS,MAAM,KAAK,CAAA;AAGrD,IAAA,KAAA,MAAW,WAAA,IAAe,MAAM,MAAA,EAAQ;AACtC,MAAA,uBAAA,CAAwB,WAAW,CAAA;AAAA,IACrC;AAAA,EACF,CAAA;AACF;;;;"}