Add APIs to `Provider_utils` to compute TASTs without computing errors
commit0a7c75d2239ad639f3e503111a25ed67ff408f2b
authorWaleed Khan <waleedk@fb.com>
Wed, 18 Dec 2019 22:25:31 +0000 (18 14:25 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 18 Dec 2019 22:28:11 +0000 (18 14:28 -0800)
treee485df3a20af1789c8383a6078138a9fc2becfd7
parent8e516646169296971545679b23c13507367008bc
Add APIs to `Provider_utils` to compute TASTs without computing errors

Summary:
This happens often in IDE use-cases, where we only care about the TAST and not the errors. In particular, TAST checks can take a long time to run, and they don't contribute to the resulting TAST.

This commit doesn't actually change it so that TAST checks are skipped; that's in a future commit.

Reviewed By: ljw1004

Differential Revision: D19149593

fbshipit-source-id: 85788816bf654a6edf017344679ab96fc354bc6d
hphp/hack/src/providers/provider_utils.ml
hphp/hack/src/providers/provider_utils.mli
hphp/hack/src/server/autocompleteService.ml
hphp/hack/src/server/identifySymbolService.ml
hphp/hack/src/server/serverBigCode.ml
hphp/hack/src/server/serverColorFile.ml
hphp/hack/src/server/serverHover.ml
hphp/hack/src/server/serverInferType.ml
hphp/hack/src/server/serverTypeDefinition.ml
hphp/hack/test/unit/server_tests.ml