Skip to content

Commit cfe8492

Browse files
committed
print some stuff
1 parent ddb553f commit cfe8492

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

analysis/src/Commands.ml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ let completion ~path ~line ~col ~currentFile =
5151

5252
let hover ~file ~line ~col ~extra ~package =
5353
let pos = Utils.protocolLineColToCmtLoc ~line ~col in
54+
print_endline "Commands.hover pos:";
55+
let (a, b) = pos in
56+
print_endline (string_of_int a);
57+
print_endline (string_of_int b);
5458
match References.locItemForPos ~extra pos with
5559
| None -> Protocol.null1
5660
| Some locItem -> (

analysis/src/References.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ let checkPos (line, char)
1515
else true
1616

1717
let locItemsForPos ~extra pos =
18+
print_endline "References.locItemsForPos extra.locItems length:";
19+
print_endline (string_of_int (List.length extra.locItems));
1820
extra.locItems |> List.filter (fun {loc; locType = _} -> checkPos pos loc)
1921

2022
let locItemForPos ~extra pos =

0 commit comments

Comments
 (0)