Sha256: 6a85d2bb6011fb580f3c05ef965ca281dfbf38a778c5c4878ae9b9b3d8809217
Contents?: true
Size: 569 Bytes
Versions: 22
Compression:
Stored size: 569 Bytes
Contents
# frozen_string_literal: true require 'opal/nodes/base' module Opal module Nodes module Args # Compiles extraction of the block argument # def m(&block); end # ^^^^^^ # # This node doesn't exist in the original AST, # InlineArgs rewriter creates it to simplify compilation class ExtractBlockarg < Base handle :extract_blockarg children :name def compile scope.uses_block! scope.add_arg name scope.prepare_block(name) end end end end end
Version data entries
22 entries across 22 versions & 1 rubygems