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