Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
- Fix formatting of trailing comments before `=` in let bindings. https://github.com/rescript-lang/rescript/pull/8444
- Fix analysis namespace parsing after the Yojson migration. https://github.com/rescript-lang/rescript/pull/8454
- Fix namespaced reference lookup in editor analysis. https://github.com/rescript-lang/rescript/pull/8455
- Fix analysis segmentation fault for references after https://github.com/rescript-lang/rescript/pull/7887. https://github.com/rescript-lang/rescript/pull/8477

#### :memo: Documentation

Expand Down
8 changes: 4 additions & 4 deletions compiler/ml/parsetree.ml
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,6 @@ and expression_desc =
(* for i = E1 to E2 do E3 done (flag = Upto)
for i = E1 downto E2 do E3 done (flag = Downto)
*)
| Pexp_for_of of pattern * expression * expression
(* for pattern of array_expr do body_expr *)
| Pexp_for_await_of of pattern * expression * expression
(* for await pattern of iterable_expr do body_expr *)
| Pexp_constraint of expression * core_type (* (E : T) *)
| Pexp_coerce of expression * unit * core_type
(* (E :> T) (None, T)
Expand Down Expand Up @@ -322,6 +318,10 @@ and expression_desc =
(* . *)
| Pexp_await of expression
| Pexp_jsx_element of jsx_element
| Pexp_for_of of pattern * expression * expression
(* for pattern of array_expr do body_expr *)
| Pexp_for_await_of of pattern * expression * expression
(* for await pattern of iterable_expr do body_expr *)

(* an element of a record pattern or expression *)
and 'a record_element = {lid: Longident.t loc; x: 'a; opt: bool (* optional *)}
Expand Down
7 changes: 5 additions & 2 deletions compiler/ml/typedtree.ml
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,17 @@ and expression_desc =
* expression
* direction_flag
* expression
| Texp_for_of of Ident.t * Parsetree.pattern * expression * expression
| Texp_for_await_of of Ident.t * Parsetree.pattern * expression * expression
| Texp_send of expression * meth * expression option
| Texp_letmodule of Ident.t * string loc * module_expr * expression
| Texp_letexception of extension_constructor * expression
| Texp_assert of expression
| Texp_pack of module_expr
| Texp_extension_constructor of Longident.t loc * Path.t
(* Keep new expression constructors at the end. CMT files are marshalled by
runtime constructor tag, so inserting constructors before existing ones
breaks analysis when it reads CMTs produced by older compiler versions. *)
| Texp_for_of of Ident.t * Parsetree.pattern * expression * expression
| Texp_for_await_of of Ident.t * Parsetree.pattern * expression * expression

and meth = Tmeth_name of string

Expand Down
7 changes: 5 additions & 2 deletions compiler/ml/typedtree.mli
Original file line number Diff line number Diff line change
Expand Up @@ -220,14 +220,17 @@ and expression_desc =
* expression
* direction_flag
* expression
| Texp_for_of of Ident.t * Parsetree.pattern * expression * expression
| Texp_for_await_of of Ident.t * Parsetree.pattern * expression * expression
| Texp_send of expression * meth * expression option
| Texp_letmodule of Ident.t * string loc * module_expr * expression
| Texp_letexception of extension_constructor * expression
| Texp_assert of expression
| Texp_pack of module_expr
| Texp_extension_constructor of Longident.t loc * Path.t
(* Keep new expression constructors at the end. CMT files are marshalled by
runtime constructor tag, so inserting constructors before existing ones
breaks analysis when it reads CMTs produced by older compiler versions. *)
| Texp_for_of of Ident.t * Parsetree.pattern * expression * expression
| Texp_for_await_of of Ident.t * Parsetree.pattern * expression * expression

and meth = Tmeth_name of string

Expand Down
Loading