File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4228,8 +4228,8 @@ and parse_record_or_object_type ?current_type_name_path ?inline_types_context
4228
4228
Asttypes. Closed
4229
4229
| _ -> Asttypes. Closed
4230
4230
in
4231
- match (p.token, inline_types_context, current_type_name_path) with
4232
- | Lident _ , Some inline_types_context , Some current_type_name_path ->
4231
+ match (inline_types_context, current_type_name_path) with
4232
+ | Some inline_types_context , Some current_type_name_path when Grammar. is_record_decl_start p.token ->
4233
4233
let labels =
4234
4234
parse_comma_delimited_region ~grammar: Grammar. RecordDecl ~closing: Rbrace
4235
4235
~f:
Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ let is_field_decl_start = function
195
195
| _ -> false
196
196
197
197
let is_record_decl_start = function
198
- | Token. At | Mutable | Lident _ | DotDotDot | String _ -> true
198
+ | Token. At | Mutable | Lident _ | DotDotDot -> true
199
199
| _ -> false
200
200
201
201
let is_typ_expr_start = function
You can’t perform that action at this time.
0 commit comments