File tree 5 files changed +6
-7
lines changed
5 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -57,9 +57,9 @@ let tuple_type_pair ?loc kind arity =
57
57
result )
58
58
| [] -> assert false
59
59
60
- let re_id = Ast_literal.Lid. js_re_id
60
+ let regexp_id = Ast_literal.Lid. regexp_id
61
61
62
- let to_js_re_type loc = Typ. constr ~loc {txt = re_id ; loc} []
62
+ let to_regexp_type loc = Typ. constr ~loc {txt = regexp_id ; loc} []
63
63
64
64
let to_undefined_type loc x =
65
65
Typ. constr ~loc {txt = Ast_literal.Lid. js_undefined; loc} [x]
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ val tuple_type_pair :
39
39
40
40
val to_undefined_type : Location .t -> Parsetree .core_type -> Parsetree .core_type
41
41
42
- val to_js_re_type : Location .t -> Parsetree .core_type
42
+ val to_regexp_type : Location .t -> Parsetree .core_type
43
43
44
44
val single_non_rec_value :
45
45
?attrs : Parsetree .attributes ->
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ let handle_extension e (self : Bs_ast_mapper.mapper)
60
60
| "re" ->
61
61
Exp. constraint_ ~loc
62
62
(Ast_exp_handle_external. handle_raw ~kind: Raw_re loc payload)
63
- (Ast_comb. to_js_re_type loc)
63
+ (Ast_comb. to_regexp_type loc)
64
64
| "external" -> (
65
65
Location. deprecated loc
66
66
" %external is deprecated, use %raw or regular FFI syntax instead." ;
Original file line number Diff line number Diff line change @@ -70,8 +70,7 @@ module Lid = struct
70
70
(* FIXME: Use primitive module *)
71
71
let js_null_undefined : t = Ldot (Lident " Js" , " null_undefined" )
72
72
73
- (* FIXME: Use primitive module *)
74
- let js_re_id : t = Ldot (Lident " Stdlib_RegExp" , " t" )
73
+ let regexp_id : t = Ldot (Lident " Stdlib_RegExp" , " t" )
75
74
end
76
75
77
76
module No_loc = struct
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ module Lid : sig
57
57
58
58
val js_null_undefined : t
59
59
60
- val js_re_id : t
60
+ val regexp_id : t
61
61
end
62
62
63
63
type expression_lit = Parsetree .expression lit
You can’t perform that action at this time.
0 commit comments