Sha256: 4fc872ee92352be9cc57730c078ce43d8e455e9beabc4912546c3670cccd21ba
Contents?: true
Size: 576 Bytes
Versions: 12
Compression:
Stored size: 576 Bytes
Contents
# frozen_string_literal: true require 'opal/nodes/base' module Opal module Nodes module Args # A utility node responsible for preparing # post-argument for :extract_post_* nodes class PreparePostArgs < Base handle :prepare_post_args children :offset def compile add_temp '$post_args' helper :slice if offset == 0 push "$post_args = $slice(arguments)" else push "$post_args = $slice(arguments, #{offset})" end end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems