summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorJemma Issroff <jemmaissroff@gmail.com>2023-12-06 10:05:14 -0500
committerJemma Issroff <jemmaissroff@gmail.com>2023-12-11 17:04:46 -0500
commit85ad5be9ee7597f6a550d66c90dc4fdd5a15f923 (patch)
tree0789b114966f639f4108c644f8cfee0fd535149c /test/ruby
parente1d995a96cf99387ce1798904c3051ba11e43d18 (diff)
[PRISM] Restructure parameters on ScopeNodes
This commit completely restructures how we handle parameters. The motivation for this commit was the fix compilation of MultiTargetNodes within parameters, including nested MultiTargetNodes. A subsequent commit will actually do the compilation for the MultiTargetNodes. This commit's main accomplishment is restructuring the locals table and how we account for it on the ScopeNode, specifically with regards to hidden variables. It has multiple steps, all commented within the code, to calculate the locals table correctly and compile the parameters: - Step 1: Caculate the table size for the locals - Step 2: Populate iv index table and local table - Step 3: Fill in parameter names of MultiTargetNodes on local table - Step 4: Fill in method body locals on local table - Step 5: Compile any locals
Diffstat (limited to 'test/ruby')
0 files changed, 0 insertions, 0 deletions