Report syntax errors parsing in hhvm compatibility mode
commit7e6c28773e34e431b6bc1b6da0ffc64376c84573
authorVladimir Matveev <vladima@fb.com>
Fri, 20 Oct 2017 15:16:25 +0000 (20 08:16 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Fri, 20 Oct 2017 15:27:18 +0000 (20 08:27 -0700)
tree414dcc9d1b748f5d73ae2fa16d7c12d83b65fd65
parentaa69d05466a1a960f63dd2d024c2ab6a39c90226
Report syntax errors parsing in hhvm compatibility mode

Summary: Ideally we should bail out as early as possible, however to do it currently we need to carefully revise all places where errors are reported in the parser to make sure that we don't interrupt during speculative parsing. As a quick workaround I'm moving error reporing part immediately after parsing

Reviewed By: oulgen

Differential Revision: D6103982

fbshipit-source-id: 96c7b40caadb340e602d5c50d27f70d43e9633a6
hphp/hack/src/parser/full_fidelity_ast.ml
hphp/hack/src/parser/full_fidelity_simple_parser.ml
hphp/test/hhcodegen_failing_tests_quick
hphp/test/hhcodegen_failing_tests_slow