Minor refactoring in autocompleteService.ml
Summary:
The function "get_results" was pretty big. I've factored out an independent method to turn partial_autocomplete_results into complete_autocomplete_results results.
I also added a few type annotations along the way, and renamed "autocomplete_result" into "partial_autocomplete_result" to better indicate that it needs work.
This is all in pursuit of my larger goal - to be able to have namespaces in the autocomplete results. (They won't be partial since they have no type information).
Reviewed By: dabek
Differential Revision:
D5345988
fbshipit-source-id:
7a6e9a6fde32f09c58379d9b7cfeff98ea40f5dc