fix xhp attri parse error
commit94cd86f9392580fdfe854ba3b13b9cca4e17abd8
authorSteve Cao <shiqicao@fb.com>
Thu, 20 Jun 2019 22:09:07 +0000 (20 15:09 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Thu, 20 Jun 2019 22:12:50 +0000 (20 15:12 -0700)
tree0c76ed4646bc2100e2f880daa2ad8dbd1d6f1d61
parent387ca5b039654125cc6673cc9844f5c050db9d2d
fix xhp attri parse error

Summary: parser stops reporting error on unaccepted xhp attribute syntax. The cause is that a wrong parser object is passed to syntax tree constructor.

Reviewed By: vassilmladenov

Differential Revision: D15917384

fbshipit-source-id: ced54c6933f64221989ec20d8be7223e2d1ef619
hphp/hack/src/parser/full_fidelity_declaration_parser.ml
hphp/hack/src/parser/full_fidelity_syntax_error.ml
hphp/hack/src/parser/syntax_error.rs
hphp/hack/test/typecheck/xhp/required_attr/syntax_error1.php [new file with mode: 0644]
hphp/hack/test/typecheck/xhp/required_attr/syntax_error1.php.exp [new file with mode: 0644]
hphp/hack/test/typecheck/xhp/required_attr/syntax_error2.php [new file with mode: 0644]
hphp/hack/test/typecheck/xhp/required_attr/syntax_error2.php.exp [new file with mode: 0644]
hphp/hack/test/typecheck/xhp/required_attr/syntax_error3.php [new file with mode: 0644]
hphp/hack/test/typecheck/xhp/required_attr/syntax_error3.php.exp [new file with mode: 0644]