File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ let check_and_discard (args : Ast_compatible.args) =
5151
5252type app_pattern = {
5353 op : string ;
54- loc : Location .t ;
54+ loc : Location .t ; (* locatoin is the location of whole expression #4451 *)
5555 args : Parsetree .expression list
5656}
5757
@@ -62,10 +62,10 @@ let sane_property_name_check loc s =
6262(* match fn as *)
6363let view_as_app (fn : exp ) s : app_pattern option =
6464 match fn.pexp_desc with
65- | Pexp_apply ({pexp_desc = Pexp_ident {txt = Lident op; loc }}, args )
65+ | Pexp_apply ({pexp_desc = Pexp_ident {txt = Lident op; _ }}, args )
6666 when Ext_list. has_string s op
6767 ->
68- Some {op; loc; args = check_and_discard args}
68+ Some {op; loc = fn.pexp_loc ; args = check_and_discard args}
6969 | _ -> None
7070
7171
You can’t perform that action at this time.
0 commit comments