Move all enums/typedefs into common
Summary:
In order to facilitate sharing typedefs between the index builder and the symbol service, this diff creates a single library, "//hphp/hack/src/search:common", which contains a single ML file, "searchUtils.ml", that contains:
* All search-related typedefs
* All autocomplete-related typedefs
* Conversion methods that take integers and switch back to kinds
I updated all of the names to refer to the new designation, "SymbolIndex", suggested by Jake's previous diff.
Finally, updated all the code in HH and global_index_builder to use the typedefs from a single place.
Reviewed By: pittsw
Differential Revision:
D14894298
fbshipit-source-id:
7b28248f76bb103e13fed7073c2ea7dde1d878ca