File tree Expand file tree Collapse file tree 5 files changed +6
-7
lines changed Expand file tree Collapse file tree 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 =
5757        result )
5858    |  []  -> assert  false 
5959
60- let  re_id  =  Ast_literal.Lid. js_re_id 
60+ let  regexp_id  =  Ast_literal.Lid. regexp_id 
6161
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} [] 
6363
6464let  to_undefined_type  loc  x  = 
6565  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 :
3939
4040val  to_undefined_type  : Location .t  -> Parsetree .core_type  -> Parsetree .core_type 
4141
42- val  to_js_re_type  : Location .t  -> Parsetree .core_type 
42+ val  to_regexp_type  : Location .t  -> Parsetree .core_type 
4343
4444val  single_non_rec_value  :
4545  ?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)
6060  |  "re"  ->
6161    Exp. constraint_ ~loc 
6262      (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)
6464  |  "external"  -> (
6565    Location. deprecated loc
6666      " %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
7070  (*  FIXME: Use primitive module *) 
7171  let  js_null_undefined  : t  =  Ldot  (Lident  " Js" " null_undefined" 
7272
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" 
7574end 
7675
7776module  No_loc  =  struct 
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ module Lid : sig
5757
5858  val  js_null_undefined  : t 
5959
60-   val  js_re_id  : t 
60+   val  regexp_id  : t 
6161end 
6262
6363type  expression_lit  = Parsetree .expression  lit 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments