2222 * along with this program; if not, write to the Free Software 
2323 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)  
2424
25- open  Ast_helper 
26- 
2725(* *
2826   {[ 
2927     Js.undefinedToOption  
@@ -44,25 +42,26 @@ let handle_external loc (x : string) : Parsetree.expression =
4442      pexp_desc = 
4543        Ast_external_mk. local_external_apply loc ~pval_prim: [" #raw_expr"  ]
4644          ~pval_type: 
47-             (Typ. arrow ~arity: (Some  1 )
48-                {lbl =  Nolabel ; typ =  Typ. any () }
49-                (Typ. any () ))
45+             (Ast_helper. Typ. arrow ~arity: (Some  1 )
46+                {lbl =  Nolabel ; typ =  Ast_helper. Typ. any () }
47+                (Ast_helper. Typ. any () ))
5048          [str_exp];
5149    }
5250  in 
5351  let  empty = 
5452    (*  FIXME: the empty delimiter does not make sense*) 
55-     Exp. ident ~loc  {txt =  Ldot  (Ldot  (Lident  " Js"  , " Undefined"  ), " empty"  ); loc}
53+     Ast_helper.Exp. ident ~loc 
54+       {txt =  Ldot  (Ldot  (Lident  " Js"  , " Undefined"  ), " empty"  ); loc}
5655  in 
5756  let  undefined_typeof = 
58-     Exp. ident {loc; txt =  Ldot  (Lident  " Js"  , " undefinedToOption"  )}
57+     Ast_helper. Exp. ident {loc; txt =  Ldot  (Lident  " Js"  , " undefinedToOption"  )}
5958  in 
60-   let  typeof =  Exp. ident {loc; txt =  Ldot  (Lident  " Js"  , " typeof"  )} in 
59+   let  typeof =  Ast_helper. Exp. ident {loc; txt =  Ldot  (Lident  " Js"  , " typeof"  )} in 
6160
6261  Ast_compatible. app1 ~loc  undefined_typeof
63-     (Exp. ifthenelse ~loc 
62+     (Ast_helper. Exp. ifthenelse ~loc 
6463       (Ast_compatible. app2 ~loc 
65-           (Exp. ident ~loc  {loc; txt =  Lident  " =="  })
64+           (Ast_helper. Exp. ident ~loc  {loc; txt =  Lident  " =="  })
6665          (Ast_compatible. app1 ~loc  typeof raw_exp)
6766          (Ast_compatible. const_exp_string ~loc  " undefined"  ))
6867       empty (Some  raw_exp))
@@ -72,8 +71,8 @@ let handle_debugger loc (payload : Ast_payload.t) =
7271  |  PStr  []  ->
7372    Ast_external_mk. local_external_apply loc ~pval_prim: [" %debugger"  ]
7473      ~pval_type: 
75-         (Typ. arrow ~arity: (Some  1 )
76-            {lbl =  Nolabel ; typ =  Typ. any () }
74+         (Ast_helper. Typ. arrow ~arity: (Some  1 )
75+            {lbl =  Nolabel ; typ =  Ast_helper. Typ. any () }
7776           (Ast_literal. type_unit () ))
7877      [Ast_literal. val_unit ~loc  () ]
7978  |  _  ->
@@ -99,9 +98,9 @@ let handle_raw ~kind loc payload =
9998      pexp_desc = 
10099        Ast_external_mk. local_external_apply loc ~pval_prim: [" #raw_expr"  ]
101100          ~pval_type: 
102-             (Typ. arrow ~arity: (Some  1 )
103-                {lbl =  Nolabel ; typ =  Typ. any () }
104-                (Typ. any () ))
101+             (Ast_helper. Typ. arrow ~arity: (Some  1 )
102+                {lbl =  Nolabel ; typ =  Ast_helper. Typ. any () }
103+                (Ast_helper. Typ. any () ))
105104          [exp];
106105      pexp_attributes = 
107106        (match  ! is_function with 
@@ -152,9 +151,9 @@ let handle_ffi ~loc ~payload =
152151        pexp_desc = 
153152          Ast_external_mk. local_external_apply loc ~pval_prim: [" #raw_expr"  ]
154153            ~pval_type: 
155-               (Typ. arrow ~arity: (Some  1 )
156-                  {lbl =  Nolabel ; typ =  Typ. any () }
157-                  (Typ. any () ))
154+               (Ast_helper. Typ. arrow ~arity: (Some  1 )
155+                  {lbl =  Nolabel ; typ =  Ast_helper. Typ. any () }
156+                  (Ast_helper. Typ. any () ))
158157            [exp];
159158        pexp_attributes = 
160159          (match  ! is_function with 
@@ -171,9 +170,9 @@ let handle_raw_structure loc payload =
171170        pexp_desc = 
172171          Ast_external_mk. local_external_apply loc ~pval_prim: [" #raw_stmt"  ]
173172            ~pval_type: 
174-               (Typ. arrow ~arity: (Some  1 )
175-                  {lbl =  Nolabel ; typ =  Typ. any () }
176-                  (Typ. any () ))
173+               (Ast_helper. Typ. arrow ~arity: (Some  1 )
174+                  {lbl =  Nolabel ; typ =  Ast_helper. Typ. any () }
175+                  (Ast_helper. Typ. any () ))
177176            [exp];
178177      }
179178  |  None  ->
0 commit comments