File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff 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
49204919and parse_type_constructor_declaration ~start_pos p =
49214920 Parser. leave_breadcrumb p Grammar. ConstructorDeclaration ;
You can’t perform that action at this time.
0 commit comments