File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ type label_noname =
37
37
type label =
38
38
| Obj_label of {name : string }
39
39
| Obj_empty
40
- | Obj_optional of {name : string }
40
+ | Obj_optional of {name : string ; for_sure_no_nested_option : bool }
41
+
41
42
(* it will be ignored , side effect will be recorded *)
42
43
43
44
@@ -90,7 +91,8 @@ let empty_label = Obj_empty
90
91
let obj_label name =
91
92
Obj_label {name }
92
93
93
- let optional name = Obj_optional {name}
94
+ let optional for_sure_no_nested_option name =
95
+ Obj_optional {name; for_sure_no_nested_option}
94
96
95
97
let empty_kind obj_arg_type = { obj_arg_label = empty_label ; obj_arg_type }
96
98
let dummy =
Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ type label = private
32
32
| Obj_label of {name : string }
33
33
| Obj_empty
34
34
35
- | Obj_optional of {name : string }
35
+ | Obj_optional of {name : string ;
36
+ for_sure_no_nested_option : bool }
36
37
(* it will be ignored , side effect will be recorded *)
37
38
38
39
@@ -83,6 +84,8 @@ val cst_string : string -> cst
83
84
val empty_label : label
84
85
(* val empty_lit : cst -> label *)
85
86
val obj_label : string -> label
86
- val optional : string -> label
87
+ val optional :
88
+ bool ->
89
+ string -> label
87
90
val empty_kind : attr -> obj_param
88
91
val dummy : param
You can’t perform that action at this time.
0 commit comments