Sha256: 57fd41af5899f069aa69688b30d0713c373d97c244a33c71f3bc7114031f1bf8
Contents?: true
Size: 637 Bytes
Versions: 16
Compression:
Stored size: 637 Bytes
Contents
# frozen_string_literal: true require 'opal/nodes/base' module Opal module Nodes module Args # A utility node responsible for extracting # post-kwargs from post-arguments. # # This node is used when kwargs cannot be inlined: # def m(a = 1, kw:); end # # This node is NOT used when kwargs can be inlined: # def m(a, kw:); end # class ExtractKwargs < Base handle :extract_kwargs def compile add_temp '$kwargs' helper :extract_kwargs push '$kwargs = $extract_kwargs($post_args)' end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems