Add dependencies on the class constants representing shape field names when adding...
commit4acc0a9d1e803577327c795252e1c2b4c56f157d
authorSasha Manzyuk <manzyuk@fb.com>
Wed, 30 Oct 2019 10:57:01 +0000 (30 03:57 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 30 Oct 2019 10:59:06 +0000 (30 03:59 -0700)
tree7d6e859e4a9d2a8d38ae3df9d771ef174c5d2fd0
parentba2caa4c2e8ae73120f43d182ab68bcbea573dac
Add dependencies on the class constants representing shape field names when adding a dependency on a shape

Summary: Shape field names in a shape can be represented by class constants, in which case we need to pull in the class and relevant constant definitions if we are pulling in the shape.

Reviewed By: Wilfred

Differential Revision: D18202724

fbshipit-source-id: 2c1397d78d73972c50125ab16df5d26e63fba9bb
hphp/hack/src/server/serverExtractStandalone.ml
hphp/hack/test/integration/data/dependencies/constants.php
hphp/hack/test/integration/data/dependencies/expected/__with_constants.php.exp
hphp/hack/test/integration/data/dependencies/expected/__with_shape_type_alias.php.exp [new file with mode: 0644]
hphp/hack/test/integration/test_extract_standalone.py