Sha256: fa830d433ede3e509f8b3cf373cc1d0d506dab17ed0409d1e38b35afbb369d4e

Contents?: true

Size: 292 Bytes

Versions: 44

Compression:

Stored size: 292 Bytes

Contents

module Ruby2JS
  class Converter

    # (casgn nil :a
    #   (int 1))

    handle :casgn do |cbase, var, value|
      begin
        put "var "

        (parse cbase; put '.') if cbase

        put "#{ var } = "; parse value
      ensure
        @vars[var] = true
      end
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
ruby2js-2.1.4 lib/ruby2js/converter/casgn.rb
ruby2js-2.1.3 lib/ruby2js/converter/casgn.rb
ruby2js-2.1.2 lib/ruby2js/converter/casgn.rb
ruby2js-2.1.1 lib/ruby2js/converter/casgn.rb
ruby2js-2.1.0 lib/ruby2js/converter/casgn.rb
ruby2js-2.0.18 lib/ruby2js/converter/casgn.rb
ruby2js-2.0.17 lib/ruby2js/converter/casgn.rb
ruby2js-2.0.16 lib/ruby2js/converter/casgn.rb
ruby2js-2.0.15 lib/ruby2js/converter/casgn.rb
ruby2js-2.0.14 lib/ruby2js/converter/casgn.rb
ruby2js-2.0.13 lib/ruby2js/converter/casgn.rb
ruby2js-2.0.12 lib/ruby2js/converter/casgn.rb
ruby2js-2.0.11 lib/ruby2js/converter/casgn.rb
ruby2js-2.0.10 lib/ruby2js/converter/casgn.rb
ruby2js-2.0.9 lib/ruby2js/converter/casgn.rb
ruby2js-2.0.8 lib/ruby2js/converter/casgn.rb
ruby2js-2.0.7 lib/ruby2js/converter/casgn.rb
ruby2js-2.0.6 lib/ruby2js/converter/casgn.rb
ruby2js-2.0.5 lib/ruby2js/converter/casgn.rb
ruby2js-2.0.4 lib/ruby2js/converter/casgn.rb