File tree Expand file tree Collapse file tree 5 files changed +17
-13
lines changed Expand file tree Collapse file tree 5 files changed +17
-13
lines changed Original file line number Diff line number Diff line change @@ -85,13 +85,13 @@ let handleTdcl (tdcl : Parsetree.type_declaration) =
85
85
if is_optional then
86
86
let optional_type = Ast_core_type. lift_option_type pld_type in
87
87
(Ast_core_type. opt_arrow pld_loc label_name optional_type maker,
88
- Val. mk pld_name
88
+ Val. mk ~loc: pld_loc pld_name
89
89
~attrs: get_optional_attrs ~prim
90
90
(Typ. arrow ~loc " " core_type optional_type)
91
91
)
92
92
else
93
93
Typ. arrow ~loc: pld_loc label_name pld_type maker,
94
- Val. mk pld_name ~attrs: get_attrs
94
+ Val. mk ~loc: pld_loc pld_name ~attrs: get_attrs
95
95
~prim: (
96
96
[" " ; (* Not needed actually*)
97
97
External_ffi_types. to_string
@@ -112,7 +112,7 @@ let handleTdcl (tdcl : Parsetree.type_declaration) =
112
112
(Typ. arrow " "
113
113
pld_type (* setter *)
114
114
(Ast_literal. type_unit () ))) in
115
- Val. mk
115
+ Val. mk ~loc: pld_loc
116
116
{loc = label_loc; txt = label_name ^ " Set" }
117
117
(* setter *)
118
118
~attrs: set_attrs
Original file line number Diff line number Diff line change @@ -36872,13 +36872,13 @@ let handleTdcl (tdcl : Parsetree.type_declaration) =
36872
36872
if is_optional then
36873
36873
let optional_type = Ast_core_type.lift_option_type pld_type in
36874
36874
(Ast_core_type.opt_arrow pld_loc label_name optional_type maker,
36875
- Val.mk pld_name
36875
+ Val.mk ~loc:pld_loc pld_name
36876
36876
~attrs:get_optional_attrs ~prim
36877
36877
(Typ.arrow ~loc "" core_type optional_type)
36878
36878
)
36879
36879
else
36880
36880
Typ.arrow ~loc:pld_loc label_name pld_type maker,
36881
- Val.mk pld_name ~attrs:get_attrs
36881
+ Val.mk ~loc:pld_loc pld_name ~attrs:get_attrs
36882
36882
~prim:(
36883
36883
["" ; (* Not needed actually*)
36884
36884
External_ffi_types.to_string
@@ -36899,7 +36899,7 @@ let handleTdcl (tdcl : Parsetree.type_declaration) =
36899
36899
(Typ.arrow ""
36900
36900
pld_type (* setter *)
36901
36901
(Ast_literal.type_unit ()))) in
36902
- Val.mk
36902
+ Val.mk ~loc:pld_loc
36903
36903
{loc = label_loc; txt = label_name ^ "Set"}
36904
36904
(* setter *)
36905
36905
~attrs:set_attrs
Original file line number Diff line number Diff line change @@ -18877,13 +18877,13 @@ let handleTdcl (tdcl : Parsetree.type_declaration) =
18877
18877
if is_optional then
18878
18878
let optional_type = Ast_core_type.lift_option_type pld_type in
18879
18879
(Ast_core_type.opt_arrow pld_loc label_name optional_type maker,
18880
- Val.mk pld_name
18880
+ Val.mk ~loc:pld_loc pld_name
18881
18881
~attrs:get_optional_attrs ~prim
18882
18882
(Typ.arrow ~loc "" core_type optional_type)
18883
18883
)
18884
18884
else
18885
18885
Typ.arrow ~loc:pld_loc label_name pld_type maker,
18886
- Val.mk pld_name ~attrs:get_attrs
18886
+ Val.mk ~loc:pld_loc pld_name ~attrs:get_attrs
18887
18887
~prim:(
18888
18888
["" ; (* Not needed actually*)
18889
18889
External_ffi_types.to_string
@@ -18904,7 +18904,7 @@ let handleTdcl (tdcl : Parsetree.type_declaration) =
18904
18904
(Typ.arrow ""
18905
18905
pld_type (* setter *)
18906
18906
(Ast_literal.type_unit ()))) in
18907
- Val.mk
18907
+ Val.mk ~loc:pld_loc
18908
18908
{loc = label_loc; txt = label_name ^ "Set"}
18909
18909
(* setter *)
18910
18910
~attrs:set_attrs
Original file line number Diff line number Diff line change @@ -123,8 +123,12 @@ var formatter = {
123
123
}
124
124
125
125
}
126
-
126
+ if ( typeof window === "undefined" ) {
127
127
global . devtoolsFormatters = [ formatter ]
128
+ }
129
+ else {
130
+ window . devtoolsFormatters = [ formatter ]
131
+ }
128
132
return 0
129
133
130
134
} ;
Original file line number Diff line number Diff line change @@ -111243,13 +111243,13 @@ let handleTdcl (tdcl : Parsetree.type_declaration) =
111243
111243
if is_optional then
111244
111244
let optional_type = Ast_core_type.lift_option_type pld_type in
111245
111245
(Ast_core_type.opt_arrow pld_loc label_name optional_type maker,
111246
- Val.mk pld_name
111246
+ Val.mk ~loc:pld_loc pld_name
111247
111247
~attrs:get_optional_attrs ~prim
111248
111248
(Typ.arrow ~loc "" core_type optional_type)
111249
111249
)
111250
111250
else
111251
111251
Typ.arrow ~loc:pld_loc label_name pld_type maker,
111252
- Val.mk pld_name ~attrs:get_attrs
111252
+ Val.mk ~loc:pld_loc pld_name ~attrs:get_attrs
111253
111253
~prim:(
111254
111254
["" ; (* Not needed actually*)
111255
111255
External_ffi_types.to_string
@@ -111270,7 +111270,7 @@ let handleTdcl (tdcl : Parsetree.type_declaration) =
111270
111270
(Typ.arrow ""
111271
111271
pld_type (* setter *)
111272
111272
(Ast_literal.type_unit ()))) in
111273
- Val.mk
111273
+ Val.mk ~loc:pld_loc
111274
111274
{loc = label_loc; txt = label_name ^ "Set"}
111275
111275
(* setter *)
111276
111276
~attrs:set_attrs
You can’t perform that action at this time.
0 commit comments