Skip to content

Commit 417cb07

Browse files
committed
Sync latest master.
Fixes #5635
1 parent 46b021d commit 417cb07

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
#### :bug: Bug Fix
2121

22+
- Fix location issue in error messages with JSX V4 where the body of the component is an application https://github.com/rescript-lang/syntax/pull/633
2223
- Fix printing of type declarations in error message where they would be considered recursive by default
2324
- Fix issue where the printer would omit attributes for `->` and `|>` https://github.com/rescript-lang/syntax/pull/629
2425
- Fix printing of optional fields in records https://github.com/rescript-lang/rescript-compiler/issues/5654

lib/4.06.1/unstable/js_compiler.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -273917,7 +273917,7 @@ module V4 = struct
273917273917
(Pat.var ~loc:emptyLoc {loc = emptyLoc; txt})
273918273918
fullExpression;
273919273919
]
273920-
(Exp.ident ~loc:emptyLoc {loc = emptyLoc; txt = Lident txt})
273920+
(Exp.ident ~loc:pstr_loc {loc = emptyLoc; txt = Lident txt})
273921273921
in
273922273922
let stripConstraint pattern =
273923273923
match pattern with

lib/4.06.1/unstable/js_playground_compiler.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -275380,7 +275380,7 @@ module V4 = struct
275380275380
(Pat.var ~loc:emptyLoc {loc = emptyLoc; txt})
275381275381
fullExpression;
275382275382
]
275383-
(Exp.ident ~loc:emptyLoc {loc = emptyLoc; txt = Lident txt})
275383+
(Exp.ident ~loc:pstr_loc {loc = emptyLoc; txt = Lident txt})
275384275384
in
275385275385
let stripConstraint pattern =
275386275386
match pattern with

lib/4.06.1/whole_compiler.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -285759,7 +285759,7 @@ module V4 = struct
285759285759
(Pat.var ~loc:emptyLoc {loc = emptyLoc; txt})
285760285760
fullExpression;
285761285761
]
285762-
(Exp.ident ~loc:emptyLoc {loc = emptyLoc; txt = Lident txt})
285762+
(Exp.ident ~loc:pstr_loc {loc = emptyLoc; txt = Lident txt})
285763285763
in
285764285764
let stripConstraint pattern =
285765285765
match pattern with

0 commit comments

Comments
 (0)