File tree Expand file tree Collapse file tree 4 files changed +363
-357
lines changed Expand file tree Collapse file tree 4 files changed +363
-357
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,9 @@ let app_exp_mapper
177177 )
178178 ;
179179 pexp_loc}
180- (* f##paint *)
180+ (* f##paint
181+ TODO: this is not relevant: remove it later
182+ *)
181183 ->
182184 sane_property_name_check pexp_loc name ;
183185 { e with pexp_desc =
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ let method_apply loc
8686 Ext_list. map args (fun (lbl ,e ) ->
8787 Bs_syntaxerr. optional_err loc lbl;
8888 (lbl,self.expr self e)) in
89- let fn = Exp. mk ~loc ( Ast_util. js_property loc obj name) in
89+ let fn = Exp. send ~loc obj {txt = name;loc} in
9090 let args =
9191 match args with
9292 | [ Nolabel , {pexp_desc =
@@ -115,4 +115,4 @@ let uncurry_fn_apply loc self fn args =
115115
116116let property_apply loc self obj name args
117117 = generic_apply loc self obj args
118- (fun loc obj -> Exp. mk ~loc ( Ast_util. js_property loc obj name) )
118+ (fun loc obj -> Exp. send ~loc obj {txt = name; loc} )
You can’t perform that action at this time.
0 commit comments