Detect special function references in IdentifySymbolService and FindRefsService
commitc93c7d8b9fa7ece6a277b9c8d6f4ef0c2aabadfa
authorJake Bailey <jakebailey@fb.com>
Mon, 16 Apr 2018 16:00:08 +0000 (16 09:00 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Mon, 16 Apr 2018 16:03:38 +0000 (16 09:03 -0700)
tree02c7fbd710065bb623c19685711ffa407240f596
parentb93d9253c1d5e23826fe69fe5e768f6b8be4e6c8
Detect special function references in IdentifySymbolService and FindRefsService

Summary:
Special functions were captured in the TAST cutover of SymbolFunCallService (D6608606), but overlooked in IdentifySymbolService (D6779283), which is the backing API for FindRefsService (D6629409).

This change detects symbols referred to in special function expressions in IdentifySymbolService, allowing them to be returned by the find-references API.

Reviewed By: huntergoldstein

Differential Revision: D7608020

fbshipit-source-id: a237d54783022c8e76edfe54a3e7dd6ec72a4694
hphp/hack/src/server/identifySymbolService.ml
hphp/hack/test/find_refs/class.php
hphp/hack/test/find_refs/class.php.exp
hphp/hack/test/find_refs/function.php
hphp/hack/test/find_refs/function.php.exp
hphp/hack/test/find_refs/method.php
hphp/hack/test/find_refs/method.php.exp
hphp/hack/test/find_refs/static_method.php
hphp/hack/test/find_refs/static_method.php.exp