Redoing ruby block conversion

Since the block is actually a constant, it does not need assignment or special hoisting
Just use the send and stick the lambda in as last arg
This commit is contained in:
2019-08-19 14:23:55 +03:00
parent f87526f86f
commit 3ddf2e3837
7 changed files with 37 additions and 72 deletions

View File

@ -76,7 +76,6 @@ module Ruby
end
def on_block(block_node)
puts block_node.to_s
sendd = process(block_node.children[0])
args = process(block_node.children[1])
body = process(block_node.children[2])