Skip to content

Commit 8a71372

Browse files
committed
Resolve review feedback
1 parent e6afb36 commit 8a71372

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

compiler/syntax/src/res_core.ml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4896,8 +4896,7 @@ and parse_type_constructor_declaration_with_bar p =
48964896
| Bar -> true
48974897
| _ -> false)
48984898
in
4899-
match p.Parser.token with
4900-
| _ when is_constructor_with_bar p ->
4899+
if is_constructor_with_bar p then (
49014900
let doc_comment_attrs =
49024901
match p.Parser.token with
49034902
| DocComment (loc, s) ->
@@ -4913,8 +4912,8 @@ and parse_type_constructor_declaration_with_bar p =
49134912
constr with
49144913
Parsetree.pcd_attributes =
49154914
doc_comment_attrs @ constr.Parsetree.pcd_attributes;
4916-
}
4917-
| _ -> None
4915+
})
4916+
else None
49184917

49194918
and parse_type_constructor_declaration ~start_pos p =
49204919
Parser.leave_breadcrumb p Grammar.ConstructorDeclaration;

0 commit comments

Comments
 (0)