Sha256: 21d5ea6e5171b2001aaf7dd443f994860df4dda6d8ee07b398bf890bf0ea2232

Contents?: true

Size: 445 Bytes

Versions: 50

Compression:

Stored size: 445 Bytes

Contents

module Ruby2JS
  class Converter

    # (arg :a)
    # (blockarg :b)

    # NOTE: process_all appends a nil child for unknown reasons

    handle :arg, :blockarg do |arg, unknown=nil|
      raise Error.new("argument #{ unknown.inspect }", @ast) if unknown
      put arg
    end

    # (shadowarg :a)

    handle :shadowarg do |arg, unknown=nil|
      raise Error.new("argument #{ unknown.inspect }", @ast) if unknown
      nil
    end
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
ruby2js-5.1.1 lib/ruby2js/converter/arg.rb
ruby2js-5.1.0 lib/ruby2js/converter/arg.rb
ruby2js-5.0.1 lib/ruby2js/converter/arg.rb
ruby2js-5.0.0 lib/ruby2js/converter/arg.rb
ruby2js-4.2.2 lib/ruby2js/converter/arg.rb
ruby2js-4.2.1 lib/ruby2js/converter/arg.rb
ruby2js-4.2.0 lib/ruby2js/converter/arg.rb
ruby2js-4.1.7 lib/ruby2js/converter/arg.rb
ruby2js-4.1.6 lib/ruby2js/converter/arg.rb
ruby2js-4.1.5 lib/ruby2js/converter/arg.rb
ruby2js-4.1.4 lib/ruby2js/converter/arg.rb
ruby2js-4.1.3 lib/ruby2js/converter/arg.rb
ruby2js-4.1.2 lib/ruby2js/converter/arg.rb
ruby2js-4.1.1 lib/ruby2js/converter/arg.rb
ruby2js-4.1.0 lib/ruby2js/converter/arg.rb
ruby2js-4.0.5 lib/ruby2js/converter/arg.rb
ruby2js-4.0.4 lib/ruby2js/converter/arg.rb
ruby2js-4.0.3 lib/ruby2js/converter/arg.rb
ruby2js-4.0.2 lib/ruby2js/converter/arg.rb
ruby2js-4.0.1 lib/ruby2js/converter/arg.rb