remove top_level_statements to fix lowpri error reporting
commit4d3ffbd81e338588482b7b0931945f0b6844c2d7
authorSteve Cao <shiqicao@fb.com>
Wed, 30 Oct 2019 23:16:39 +0000 (30 16:16 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 30 Oct 2019 23:18:18 +0000 (30 16:18 -0700)
treed8a32f26f3472586fcd0b923ac49e9d758bd731b
parent07a898dbf0484afdbcf043d64f54a96d889b9023
remove top_level_statements to fix lowpri error reporting

Summary: Aaron, I saw you added this check, but it breaks lowpri error reporting(after remove it more test file passing, see lowerer_pass file in this diff). From sandcastle result, it passes HN tests. Is there other HN tests will break after this diff?

Reviewed By: aorenste

Differential Revision: D18194509

fbshipit-source-id: 8921a169470ea0729913c0ebbd5b49c92b7f016d
hphp/hack/src/parser/lowerer.rs