Commit 3f49263
authored
fix: add object_expression/object_member support to reformatter (#5776)
# fix: add object_expression/object_member support to reformatter
## Summary
The reformatter was missing handlers for `object_expression` and
`object_member` rules, causing it to always fail when encountering
object literals (e.g. partial index `where` clauses).
## Changes
* `psl/schema-ast/src/reformat.rs` : Add `reformat_object_expression`
and `reformat_object_member` functions
* `psl/psl/tests/reformatter/` : Add corresponding test fixtures for
object_expression and object_member.
fix: prisma/prisma#291801 parent 0cae7ae commit 3f49263
File tree
3 files changed
+52
-0
lines changed- psl
- psl/tests/reformatter
- schema-ast/src
3 files changed
+52
-0
lines changedLines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
380 | 414 | | |
381 | 415 | | |
382 | 416 | | |
| |||
0 commit comments