autocompleteService: rewrite on_class and on_function
commitedd9293306de98548604b2ab2572d5cce4fb6834
authorLucian Wischik <ljw@fb.com>
Fri, 14 Jul 2017 17:04:21 +0000 (14 10:04 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Fri, 14 Jul 2017 17:12:15 +0000 (14 10:12 -0700)
tree7c2ca3c2ab20bcf3c8ad9e2d66a48b28998c9fa8
parentaa39046e98b39755e360ceda939bffe266ef97cf
autocompleteService: rewrite on_class and on_function

Summary: The functions `on_class` and `on_function` are a bit long and nested. I'm refactoring them into something shorter, a bit more idiomatic, and ready for the further changes I'll want to make to autocomplete.

Reviewed By: dabek

Differential Revision: D5366102

fbshipit-source-id: 54affc23c3c2c785ecd6574c134f6b5bba76dce1
hphp/hack/src/server/autocompleteService.ml