File tree Expand file tree Collapse file tree 7 files changed +18
-13
lines changed Expand file tree Collapse file tree 7 files changed +18
-13
lines changed Original file line number Diff line number Diff line change @@ -83,16 +83,16 @@ let expr_mapper (self : mapper) (e : Parsetree.expression) =
83
83
let name = " emptyArray" in
84
84
let unit : _ Asttypes.loc = {txt = Ast_literal.Lid. val_unit ; loc } in
85
85
let open Ast_helper in
86
- Exp. let_ Nonrecursive
86
+ Exp. let_ Nonrecursive ~loc
87
87
[{pvb_pat =
88
88
Pat. var {txt = name ; loc} ~loc ;
89
89
pvb_expr =
90
90
Exp. fun_ Nolabel None
91
91
(Pat. construct unit None )
92
92
(Exp. array [] ~attrs: [{txt = " " ; loc}, PStr []]);
93
93
pvb_loc = loc; pvb_attributes = [] }]
94
- (Exp. apply
95
- (Exp. ident {txt = Lident name; loc})
94
+ (Exp. apply ~loc
95
+ (Exp. ident ~loc {txt = Lident name; loc})
96
96
[Nolabel ,
97
97
Exp. construct unit None ~loc ;
98
98
])
Original file line number Diff line number Diff line change @@ -4592,6 +4592,7 @@ let absolute_path s = (* This function could go into Filename *)
4592
4592
aux s
4593
4593
4594
4594
let show_filename file =
4595
+ let file = if file = "_none_" then !input_name else file in
4595
4596
if !absname then absolute_path file else file
4596
4597
4597
4598
let print_filename ppf file =
Original file line number Diff line number Diff line change @@ -4863,6 +4863,7 @@ let absolute_path s = (* This function could go into Filename *)
4863
4863
aux s
4864
4864
4865
4865
let show_filename file =
4866
+ let file = if file = "_none_" then !input_name else file in
4866
4867
if !absname then absolute_path file else file
4867
4868
4868
4869
let print_filename ppf file =
@@ -409918,16 +409919,16 @@ let expr_mapper (self : mapper) (e : Parsetree.expression) =
409918
409919
let name = "emptyArray" in
409919
409920
let unit : _ Asttypes.loc = {txt = Ast_literal.Lid.val_unit ; loc } in
409920
409921
let open Ast_helper in
409921
- Exp.let_ Nonrecursive
409922
+ Exp.let_ Nonrecursive ~loc
409922
409923
[{pvb_pat =
409923
409924
Pat.var {txt = name ; loc} ~loc ;
409924
409925
pvb_expr =
409925
409926
Exp.fun_ Nolabel None
409926
409927
(Pat.construct unit None)
409927
409928
(Exp.array [] ~attrs:[{txt = ""; loc}, PStr []]);
409928
409929
pvb_loc = loc; pvb_attributes = []}]
409929
- (Exp.apply
409930
- (Exp.ident {txt = Lident name; loc})
409930
+ (Exp.apply ~loc
409931
+ (Exp.ident ~loc {txt = Lident name; loc})
409931
409932
[Nolabel,
409932
409933
Exp.construct unit None ~loc;
409933
409934
])
Original file line number Diff line number Diff line change @@ -4863,6 +4863,7 @@ let absolute_path s = (* This function could go into Filename *)
4863
4863
aux s
4864
4864
4865
4865
let show_filename file =
4866
+ let file = if file = "_none_" then !input_name else file in
4866
4867
if !absname then absolute_path file else file
4867
4868
4868
4869
let print_filename ppf file =
@@ -409918,16 +409919,16 @@ let expr_mapper (self : mapper) (e : Parsetree.expression) =
409918
409919
let name = "emptyArray" in
409919
409920
let unit : _ Asttypes.loc = {txt = Ast_literal.Lid.val_unit ; loc } in
409920
409921
let open Ast_helper in
409921
- Exp.let_ Nonrecursive
409922
+ Exp.let_ Nonrecursive ~loc
409922
409923
[{pvb_pat =
409923
409924
Pat.var {txt = name ; loc} ~loc ;
409924
409925
pvb_expr =
409925
409926
Exp.fun_ Nolabel None
409926
409927
(Pat.construct unit None)
409927
409928
(Exp.array [] ~attrs:[{txt = ""; loc}, PStr []]);
409928
409929
pvb_loc = loc; pvb_attributes = []}]
409929
- (Exp.apply
409930
- (Exp.ident {txt = Lident name; loc})
409930
+ (Exp.apply ~loc
409931
+ (Exp.ident ~loc {txt = Lident name; loc})
409931
409932
[Nolabel,
409932
409933
Exp.construct unit None ~loc;
409933
409934
])
Original file line number Diff line number Diff line change @@ -4592,6 +4592,7 @@ let absolute_path s = (* This function could go into Filename *)
4592
4592
aux s
4593
4593
4594
4594
let show_filename file =
4595
+ let file = if file = "_none_" then !input_name else file in
4595
4596
if !absname then absolute_path file else file
4596
4597
4597
4598
let print_filename ppf file =
Original file line number Diff line number Diff line change @@ -4536,6 +4536,7 @@ let absolute_path s = (* This function could go into Filename *)
4536
4536
aux s
4537
4537
4538
4538
let show_filename file =
4539
+ let file = if file = "_none_" then !input_name else file in
4539
4540
if true then absolute_path file else file
4540
4541
4541
4542
let print_filename ppf file =
@@ -412466,16 +412467,16 @@ let expr_mapper (self : mapper) (e : Parsetree.expression) =
412466
412467
let name = "emptyArray" in
412467
412468
let unit : _ Asttypes.loc = {txt = Ast_literal.Lid.val_unit ; loc } in
412468
412469
let open Ast_helper in
412469
- Exp.let_ Nonrecursive
412470
+ Exp.let_ Nonrecursive ~loc
412470
412471
[{pvb_pat =
412471
412472
Pat.var {txt = name ; loc} ~loc ;
412472
412473
pvb_expr =
412473
412474
Exp.fun_ Nolabel None
412474
412475
(Pat.construct unit None)
412475
412476
(Exp.array [] ~attrs:[{txt = ""; loc}, PStr []]);
412476
412477
pvb_loc = loc; pvb_attributes = []}]
412477
- (Exp.apply
412478
- (Exp.ident {txt = Lident name; loc})
412478
+ (Exp.apply ~loc
412479
+ (Exp.ident ~loc {txt = Lident name; loc})
412479
412480
[Nolabel,
412480
412481
Exp.construct unit None ~loc;
412481
412482
])
You can’t perform that action at this time.
0 commit comments