prettier
5c2a2b16 - Refactor: Move JSON range calculation logic to language-json

Commit
61 days ago
Refactor: Move JSON range calculation logic to language-json - Created new `src/language-json/get-format-ranges.js` with JSON-specific logic - Added `getFormatRanges` generator function that accepts node ancestors and yields format ranges - Moved `isJsonSourceElement` function to language-json module - Updated `src/main/range.js` to delegate JSON range calculation to language-json - Removed `jsonSourceElements` and `findCommonAncestor` from main range.js - All tests passing Co-authored-by: fisker <172584+fisker@users.noreply.github.com>
Author
Parents
Loading