Handle missing use-cases in facts extraction
commit7d0ca3830238b3fdc4878919f02dd657fb1d5f8c
authorVladimir Matveev <vladima@fb.com>
Thu, 15 Mar 2018 18:01:00 +0000 (15 11:01 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Thu, 15 Mar 2018 18:21:28 +0000 (15 11:21 -0700)
tree0703c5d24ad138b0181f92847265560e938a685e
parentd261cb9cda604cbab67f7466f279e09a4f5a98be
Handle missing use-cases in facts extraction

Summary:
- entries in `use` trait clause should go to base types
- xhp type names should be mangled
- for generic types pick only type constructor name
- property handle globally qualified names
- property handle nested define calls
- handle functions nested in if statements or other functions (not methods)

Differential Revision: D7286247

fbshipit-source-id: ea74d39d20edd6da414ef4be9915a177c15e304d
hphp/hack/src/facts/facts_parser.ml
hphp/hack/src/hh_single_compile.ml