File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -136,13 +136,17 @@ let gen_rft_variant sc rf_label { Ot.v_constructors; _ } =
136
136
F. sub_scope sc (fun sc ->
137
137
match vc_field_type with
138
138
| Ot. Vct_nullary ->
139
- F. linep sc " | %s -> (\" %s\" , `Null) :: assoc" vc_constructor json_label
139
+ F. linep sc " | %s -> (\" %s\" , `Null) :: assoc" vc_constructor
140
+ json_label
140
141
| Ot. Vct_non_nullary_constructor field_type ->
141
142
(match
142
143
gen_field var_name json_label field_type vc_payload_kind
143
144
with
144
- | None -> F. linep sc " | %s -> (\" %s\" , `Null) :: assoc" vc_constructor json_label
145
- | Some exp -> F. linep sc " | %s v -> %s :: assoc" vc_constructor exp)))
145
+ | None ->
146
+ F. linep sc " | %s -> (\" %s\" , `Null) :: assoc" vc_constructor
147
+ json_label
148
+ | Some exp ->
149
+ F. linep sc " | %s v -> %s :: assoc" vc_constructor exp)))
146
150
v_constructors);
147
151
148
152
F. linep sc " in (* match v.%s *)" rf_label
You can’t perform that action at this time.
0 commit comments