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) =
51
51
52
52
type app_pattern = {
53
53
op : string ;
54
- loc : Location .t ;
54
+ loc : Location .t ; (* locatoin is the location of whole expression #4451 *)
55
55
args : Parsetree .expression list
56
56
}
57
57
@@ -62,10 +62,10 @@ let sane_property_name_check loc s =
62
62
(* match fn as *)
63
63
let view_as_app (fn : exp ) s : app_pattern option =
64
64
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 )
66
66
when Ext_list. has_string s op
67
67
->
68
- Some {op; loc; args = check_and_discard args}
68
+ Some {op; loc = fn.pexp_loc ; args = check_and_discard args}
69
69
| _ -> None
70
70
71
71
You can’t perform that action at this time.
0 commit comments