Add top level statements to the annotated AST.
commit55e8a5da13e7deb30ae1c37f39bfb3cb7e2efce2
authorWilfred Hughes <wilfred@fb.com>
Thu, 13 Sep 2018 13:36:08 +0000 (13 06:36 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Thu, 13 Sep 2018 13:49:07 +0000 (13 06:49 -0700)
treeff077d480273fecaf3edd58e9384ae306f03e6af
parent9ed018f04c5749bfa1a8e6b0e7ae74f4d247768e
Add top level statements to the annotated AST.

Summary:
As part of teaching hh_single_compile to handle typed ASTs, we need top level statements in the annotated AST. These matter when compiling.

I've also tweaked tast.ml to include aast directly from aast.ml rather than via nast.ml.

Reviewed By: CatherineGasnier

Differential Revision: D9702794

fbshipit-source-id: ee1b617b3809f1db2e4e4fd2cbcc86a7ec1d9280
hphp/hack/src/annotated_ast/aast.ml
hphp/hack/src/annotated_ast/aast_mapper.ml
hphp/hack/src/naming/nast.ml
hphp/hack/src/typing/tast.ml
hphp/hack/src/typing/tast_env.ml
hphp/hack/src/typing/typing.ml