Move continue/break rewriting logic into own module
commit1b5b2d95988944710371c561a87d0a984b9f6426
authorEric Lippert <ericlippert@fb.com>
Wed, 1 Mar 2017 19:26:17 +0000 (1 11:26 -0800)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Wed, 1 Mar 2017 19:32:04 +0000 (1 11:32 -0800)
treec89cf5461f9f5b78e44748b9db989f919ecb9229
parent14baa8c20ee5064b0d054230c7f7d69f45b2036e
Move continue/break rewriting logic into own module

Summary:
This logic is about to get more complicated and it is logically distinct from the other code lowering steps, so it can go into its own module.

Right now I'm just moving the code over as-is. I'll do some strategic renaming in a later diff.

Reviewed By: hubyrod

Differential Revision: D4633896

fbshipit-source-id: 8fe1aeb089a952b09d9a749ff0c2f3013b5ce3d7
hphp/hack/src/hhbc/continue_break_rewriter.ml [new file with mode: 0644]
hphp/hack/src/hhbc/hhbc_from_nast.ml