Skip to content

Commit

Permalink
Add transform for match statements
Browse files Browse the repository at this point in the history
Summary:
This builds on the previous diff implementing the transform for match expressions. See that for more details.

Output:
We replace the match statement with a labelled block containing a series of if statements. We use the label to exit this block when we have a successful match. Otherwise, we go to the next test.

Reviewed By: SamChou19815

Differential Revision: D66852555

fbshipit-source-id: 6c5459732b3d813afd94b0b39a7fee11dc017292
  • Loading branch information
gkz authored and facebook-github-bot committed Dec 17, 2024
1 parent 5ec8b2c commit 6e8e0db
Show file tree
Hide file tree
Showing 2 changed files with 617 additions and 1 deletion.
Loading

0 comments on commit 6e8e0db

Please sign in to comment.