Sha256: c526ec82c266c55faf51262d0800ce04e2b8da23784e5e57b56247a3c01e88e8

Contents?: true

Size: 341 Bytes

Versions: 19

Compression:

Stored size: 341 Bytes

Contents

module Ruby2JS
  class Converter

    # (next
    #   (int 1))

    handle :next do |n=nil|
      if @next_token == :return
        put 'return'
        if n
          put ' '
          parse n
        end
      else
        raise Error.new("next argument #{ n.inspect }", @ast) if n
        put @next_token.to_s
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

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