diff options
| author | Kevin Newton <kddnewton@gmail.com> | 2024-01-24 10:39:40 -0500 |
|---|---|---|
| committer | Kevin Newton <kddnewton@gmail.com> | 2024-01-24 11:18:58 -0500 |
| commit | 4220bdba395cff7d4e933b319a186e889ed9b921 (patch) | |
| tree | 1f09bf14a34943a60c7e763dcbc814cce18dda21 /test/ruby | |
| parent | 767f5d045f76ff07336c1f55608247a2d1a5b45c (diff) | |
[PRISM] Remove dead code from prism_compile.c
Previously, we were using the main pm_compile_node switch to compile
target nodes. Eventually we switched to pm_compile_target_node and
updated all the call sites. As such, all of this has become dead
code.
However, the multi target code was reused for both parameters and
multi writes (it was just incorrect for multi writes). So that code
has now been moved into its own function that is more specific to
destructured parameters (and has more assertions to that effect).
Overall now you should not see target nodes when you call into
pm_compile_node, since they are more specialized and require more
special handling.
Diffstat (limited to 'test/ruby')
0 files changed, 0 insertions, 0 deletions
