Skip to content

Commit fb13480

Browse files
committed
print loc
1 parent cfe8492 commit fb13480

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

analysis/src/References.ml

+8
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ let maybeLog m = if !debugReferences then Log.log ("[ref] " ^ m)
66

77
let checkPos (line, char)
88
{Location.loc_start = {pos_lnum; pos_bol; pos_cnum}; loc_end} =
9+
print_endline "References.checkPos loc_start pos_lnum, pos_bol, pos_cnum:";
10+
print_endline (string_of_int pos_lnum);
11+
print_endline (string_of_int pos_bol);
12+
print_endline (string_of_int pos_cnum);
13+
print_endline "References.checkPos loc_end pos_lnum, pos_bol, pos_cnum:";
14+
print_endline (string_of_int loc_end.pos_lnum);
15+
print_endline (string_of_int loc_end.pos_bol);
16+
print_endline (string_of_int loc_end.pos_cnum);
917
if line < pos_lnum || (line = pos_lnum && char < pos_cnum - pos_bol) then
1018
false
1119
else if

0 commit comments

Comments
 (0)