Implement goto statement parsing
commit90ce25ae32f3c0c87092cc34eeec8c26faa26979
authorMichael Tingley <tingley@fb.com>
Thu, 6 Apr 2017 16:05:27 +0000 (6 09:05 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Thu, 6 Apr 2017 16:07:56 +0000 (6 09:07 -0700)
tree38a3dbc11a085059b33dcf27fe4f5c9bdc0a228f
parent53731cee4574255b24279ab6e6a8fc954652157e
Implement goto statement parsing

Differential Revision: D4818878

fbshipit-source-id: 229605aac5b2fc873eb27f9be53d11117976eb11
29 files changed:
hphp/hack/src/hhbc/emit_statement.ml
hphp/hack/src/naming/naming.ml
hphp/hack/src/parser/ast.ml
hphp/hack/src/parser/ast_visitor.ml
hphp/hack/src/parser/ast_visitors_endo.ml
hphp/hack/src/parser/ast_visitors_endo.mli
hphp/hack/src/parser/ast_visitors_iter.ml
hphp/hack/src/parser/ast_visitors_iter.mli
hphp/hack/src/parser/ast_visitors_map.ml
hphp/hack/src/parser/ast_visitors_map.mli
hphp/hack/src/parser/ast_visitors_reduce.ml
hphp/hack/src/parser/ast_visitors_reduce.mli
hphp/hack/src/parser/parser_hack.ml
hphp/hack/src/typing/typing_get_locals.ml
hphp/hack/test/typecheck/goto/goto_invalid_label.php [new file with mode: 0644]
hphp/hack/test/typecheck/goto/goto_invalid_label.php.exp [new file with mode: 0644]
hphp/hack/test/typecheck/goto/goto_invalid_label.php.no_format [new file with mode: 0644]
hphp/hack/test/typecheck/goto/goto_mid_statement.php [new file with mode: 0644]
hphp/hack/test/typecheck/goto/goto_mid_statement.php.exp [new file with mode: 0644]
hphp/hack/test/typecheck/goto/goto_mid_statement.php.no_format [new file with mode: 0644]
hphp/hack/test/typecheck/goto/goto_multiple_labels.php [new file with mode: 0644]
hphp/hack/test/typecheck/goto/goto_multiple_labels.php.exp [new file with mode: 0644]
hphp/hack/test/typecheck/goto/goto_multiple_labels.php.no_format [new file with mode: 0644]
hphp/hack/test/typecheck/goto/goto_switch_construct.php [new file with mode: 0644]
hphp/hack/test/typecheck/goto/goto_switch_construct.php.exp [new file with mode: 0644]
hphp/hack/test/typecheck/goto/goto_switch_construct.php.no_format [new file with mode: 0644]
hphp/hack/test/typecheck/goto/goto_without_label.php [new file with mode: 0644]
hphp/hack/test/typecheck/goto/goto_without_label.php.exp [new file with mode: 0644]
hphp/hack/test/typecheck/goto/goto_without_label.php.no_format [new file with mode: 0644]