Skip to content

Commit c832a65

Browse files
committed
Debug: print locItem on dump command.
1 parent 7c54e8b commit c832a65

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

analysis/src/Commands.ml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
let dumpLocations ~full =
22
full.SharedTypes.extra.locItems
33
|> List.map (fun locItem ->
4+
let locItemTxt = SharedTypes.locItemToString locItem in
45
let hoverText = Hover.newHover ~full locItem in
56
let hover =
67
match hoverText with None -> "" | Some s -> String.escaped s
@@ -14,7 +15,8 @@ let dumpLocations ~full =
1415
{uri = Uri2.toString uri2; range = Utils.cmtLocToRange loc}
1516
in
1617
Protocol.stringifyRange (Utils.cmtLocToRange locItem.loc)
17-
^ "\n Hover: " ^ hover ^ "\n Definition: " ^ def)
18+
^ "\n Hover: " ^ hover ^ "\n Definition: " ^ def ^ "\n locItem: "
19+
^ locItemTxt)
1820
|> String.concat "\n\n"
1921

2022
let dump files =

0 commit comments

Comments
 (0)