Fix Autocomplete of ID
commit53a9bc32b786505901188676017dcdbba40089de
authorJoel Beales <joelb@fb.com>
Thu, 20 Mar 2014 00:18:28 +0000 (19 17:18 -0700)
committerSara Golemon <sgolemon@fb.com>
Wed, 26 Mar 2014 05:29:37 +0000 (25 22:29 -0700)
tree2a0d6596f78a1bf8298cb314ac35ba6d2098d3d1
parent8ac4e963c31694a8114b5ac447bb8de26d160ba8
Fix Autocomplete of ID

D1195838 broke this. (My fault, I need to make a test harness and write some tests for this stuff)

The problem is when you're starting to type a global, it doesn't necessarily hit the dispatch_call part.

(There's no brackets typed yet)

This moves that code out of fun_type_of_id and adds it in both those call sites and one more.

Reviewed By: @jwatzman

Differential Revision: D1230498
hphp/hack/src/typing/typing.ml