Sha256: b6268131cb1c7150e479c80269cfff65410301602508c1ad438d6f5b3ba98e77

Contents?: true

Size: 611 Bytes

Versions: 40

Compression:

Stored size: 611 Bytes

Contents

# frozen_string_literal: true

require 'opal/rewriters/base'

module Opal
  module Rewriters
    class DumpArgs < Base
      def on_def(node)
        node = super(node)
        _mid, args, _body = *node
        node.updated(nil, nil, meta: { original_args: args })
      end

      def on_defs(node)
        node = super(node)
        _recv, _mid, args, _body = *node

        node.updated(nil, nil, meta: { original_args: args })
      end

      def on_iter(node)
        node = super(node)
        args, _body = *node
        node.updated(nil, nil, meta: { original_args: args })
      end
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
opal-1.8.3.rc1 lib/opal/rewriters/dump_args.rb
opal-1.8.2 lib/opal/rewriters/dump_args.rb
opal-1.8.1 lib/opal/rewriters/dump_args.rb
opal-1.8.0 lib/opal/rewriters/dump_args.rb
opal-1.8.0.beta1 lib/opal/rewriters/dump_args.rb
opal-1.7.4 lib/opal/rewriters/dump_args.rb
opal-1.8.0.alpha1 lib/opal/rewriters/dump_args.rb
opal-1.7.3 lib/opal/rewriters/dump_args.rb
opal-1.7.2 lib/opal/rewriters/dump_args.rb
opal-1.7.1 lib/opal/rewriters/dump_args.rb
opal-1.7.0 lib/opal/rewriters/dump_args.rb
opal-1.7.0.rc1 lib/opal/rewriters/dump_args.rb
opal-1.6.1 lib/opal/rewriters/dump_args.rb
opal-1.6.0 lib/opal/rewriters/dump_args.rb
opal-1.6.0.rc1 lib/opal/rewriters/dump_args.rb
opal-1.6.0.alpha1 lib/opal/rewriters/dump_args.rb
opal-1.5.1 lib/opal/rewriters/dump_args.rb
opal-1.5.0 lib/opal/rewriters/dump_args.rb
opal-1.5.0.rc1 lib/opal/rewriters/dump_args.rb
opal-1.4.1 lib/opal/rewriters/dump_args.rb