Disable errors during parser for serverless IDE TAST computation
commit470303739ca842ab28110981332a503cc2117410
authorTed Spence <tspence@fb.com>
Thu, 26 Sep 2019 00:33:33 +0000 (25 17:33 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 26 Sep 2019 00:36:00 +0000 (25 17:36 -0700)
tree8180e9493fe49cdf2d492cde69c115a0579e048d
parent6138de38f642f203ac6d677c7935bc949fe21764
Disable errors during parser for serverless IDE TAST computation

Summary:
Whenever serverless IDE computes an AST or Typed AST, we run the risks of encountering a case where the parser throws an error.

Let's catch these using `Errors.do_ @@ ` and use the best-available information rather than allowing `hh_client` to crash.

Reviewed By: arxanas

Differential Revision: D17535367

fbshipit-source-id: 6c3bbb4e8df9aaab1dc531d607b160e09b88dc6a
hphp/hack/src/providers/provider_utils.ml
hphp/hack/src/server/fileOutline.ml