File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed
Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -1005,15 +1005,20 @@ let generate_fragment_implementation config name
10051005 | Some { Source_pos. item = variable_definitions } -> variable_definitions
10061006 | None -> [] )
10071007 in
1008+ let param_var = { txt = " __param" ; loc = Location. none } in
1009+ let param_ident = { txt = Longident. Lident " __param" ; loc = Location. none } in
10081010 let verifyName =
1009- Ast_helper.Exp. function_
1010- [
1011- Ast_helper.Exp. case
1012- (Ast_helper.Pat. variant name None )
1013- (Ast_helper.Exp. construct
1014- { txt = Longident. Lident " ()" ; loc = Location. none }
1015- None );
1016- ]
1011+ Ast_helper.Exp. fun_ Nolabel None
1012+ (Ast_helper.Pat. var param_var)
1013+ (Ast_helper.Exp. match_
1014+ (Ast_helper.Exp. ident param_ident)
1015+ [
1016+ Ast_helper.Exp. case
1017+ (Ast_helper.Pat. variant name None )
1018+ (Ast_helper.Exp. construct
1019+ { txt = Longident. Lident " ()" ; loc = Location. none }
1020+ None );
1021+ ])
10171022 in
10181023 let type_name = base_type_name (Option. get_or_else " t" type_name) in
10191024 let contents =
You can’t perform that action at this time.
0 commit comments