File tree 4 files changed +6
-0
lines changed
4 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,12 @@ let fmt_position with_name f l =
28
28
;;
29
29
30
30
let fmt_location f loc =
31
+ if ! Clflags. dump_location then (
31
32
let p_2nd_name = loc.loc_start.pos_fname <> loc.loc_end.pos_fname in
32
33
fprintf f " (%a..%a)" (fmt_position true ) loc.loc_start
33
34
(fmt_position p_2nd_name) loc.loc_end;
34
35
if loc.loc_ghost then fprintf f " ghost" ;
36
+ )
35
37
;;
36
38
37
39
let rec fmt_longident_aux f x =
Original file line number Diff line number Diff line change @@ -27,8 +27,10 @@ let fmt_position f l =
27
27
;;
28
28
29
29
let fmt_location f loc =
30
+ if ! Clflags. dump_location then (
30
31
fprintf f " (%a..%a)" fmt_position loc.loc_start fmt_position loc.loc_end;
31
32
if loc.loc_ghost then fprintf f " ghost" ;
33
+ )
32
34
;;
33
35
34
36
let rec fmt_longident_aux f x =
Original file line number Diff line number Diff line change @@ -419,4 +419,5 @@ let bs_only = ref false
419
419
let bs_gentype = ref None
420
420
let no_assert_false = ref false
421
421
let bs_quiet = ref false
422
+ let dump_location = ref true
422
423
#end
Original file line number Diff line number Diff line change @@ -243,4 +243,5 @@ val bs_only : bool ref (* set true on bs top*)
243
243
val bs_gentype : string option ref
244
244
val no_assert_false : bool ref
245
245
val bs_quiet : bool ref
246
+ val dump_location : bool ref
246
247
#end
You can’t perform that action at this time.
0 commit comments