Render context constants correctly
commite087a60182af7d83ae18af379ca853e619d64081
authorMichael Thomas <mjt@fb.com>
Wed, 17 Feb 2021 16:12:23 +0000 (17 08:12 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 17 Feb 2021 16:16:36 +0000 (17 08:16 -0800)
treeff771fb1eb9acb9d07d5db8214eae0ff834c08fe
parent4b14f6e8a817acc4a03a6917525afca10957f9de
Render context constants correctly

Summary: This diff updates pretty printing of type constants to distinguish between regular type constants and context constants. Since contexts are given as an intersection type, this also means distinguishing between hints for contexts and those for regular types when pretty printing.

Reviewed By: madgen

Differential Revision: D26484308

fbshipit-source-id: 955a9c1d37ac7d1b9116cd4f13706f6bab989643
hphp/hack/src/server/serverExtractStandalone.ml
hphp/hack/test/integration/data/dependencies/expected/__WithContextConstant++has_io.php.exp [new file with mode: 0644]
hphp/hack/test/integration/data/dependencies/toplevel.php
hphp/hack/test/integration/test_extract_standalone.py