Skip to content

Commit 1b85b61

Browse files
authored
fix(@pandacss/extractor): add endLineNumber/endColumn to panda debug (#3408)
* fix(@pandacss/extractor): add `endLineNumber`/`endColumn` to `panda debug` output * Update packages/extractor/__tests__/extract.test.ts * Update packages/extractor/__tests__/declarations-files.test.ts+11
1 parent f60faf2 commit 1b85b61

File tree

15 files changed

+1252
-0
lines changed

15 files changed

+1252
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@pandacss/extractor': patch
3+
---
4+
5+
Add `endLineNumber` and `endColumn` fields to AST JSON output from `panda debug` command.
6+
7+
The `*.ast.json` files generated by `panda debug` now include complete position information for detected CSS usage locations. Previously, only start position (`line` and `column`) was exported. Now the output includes:
8+
9+
- `line`: Start line number
10+
- `column`: Start column number
11+
- `endLineNumber`: End line number (new)
12+
- `endColumn`: End column number (new)
13+
14+
This provides complete span coverage for each detected node, making it easier to precisely locate CSS usage in source files.
15+
16+
Fixes #3407

0 commit comments

Comments
 (0)