Skip to content

Commit de54923

Browse files
committed
Resolve review feedback
1 parent 372d90a commit de54923

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
@@ -4897,8 +4897,7 @@ and parse_type_constructor_declaration_with_bar p =
48974897
| Bar -> true
48984898
| _ -> false)
48994899
in
4900-
match p.Parser.token with
4901-
| _ when is_constructor_with_bar p ->
4900+
if is_constructor_with_bar p then (
49024901
let doc_comment_attrs =
49034902
match p.Parser.token with
49044903
| DocComment (loc, s) ->
@@ -4914,8 +4913,8 @@ and parse_type_constructor_declaration_with_bar p =
49144913
constr with
49154914
Parsetree.pcd_attributes =
49164915
doc_comment_attrs @ constr.Parsetree.pcd_attributes;
4917-
}
4918-
| _ -> None
4916+
})
4917+
else None
49194918

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

0 commit comments

Comments
 (0)