Sha256: 328d04a4eb1a481fce91c347bd17c78ec04cdef4dd0a724bde830e28fa775f1c
Contents?: true
Size: 637 Bytes
Versions: 15
Compression:
Stored size: 637 Bytes
Contents
require 'opal/nodes/base' module Opal module Nodes # A node responsible for extracting # keyword arguments list # # If a method/block arguments have splat we can't # find the place where **exactly** starts keyword arguments. # # @see PostArgsNode # class PostKwargsNode < Base handle :post_kwargs def compile return if children.empty? initialize_kw_args children.each do |arg| push process(arg) end end def initialize_kw_args line "$kwargs = Opal.extract_kwargs(#{scope.working_arguments});" end end end end
Version data entries
15 entries across 15 versions & 1 rubygems