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 =
4897
4897
| Bar -> true
4898
4898
| _ -> false )
4899
4899
in
4900
- match p.Parser. token with
4901
- | _ when is_constructor_with_bar p ->
4900
+ if is_constructor_with_bar p then (
4902
4901
let doc_comment_attrs =
4903
4902
match p.Parser. token with
4904
4903
| DocComment (loc , s ) ->
@@ -4914,8 +4913,8 @@ and parse_type_constructor_declaration_with_bar p =
4914
4913
constr with
4915
4914
Parsetree. pcd_attributes =
4916
4915
doc_comment_attrs @ constr.Parsetree. pcd_attributes;
4917
- }
4918
- | _ -> None
4916
+ })
4917
+ else None
4919
4918
4920
4919
and parse_type_constructor_declaration ~start_pos p =
4921
4920
Parser. leave_breadcrumb p Grammar. ConstructorDeclaration ;
You can’t perform that action at this time.
0 commit comments