Sha256: 621078d607132ac04c9f5673445a7d7aec6029244df513cefa2ec2812c877c8b

Contents?: true

Size: 484 Bytes

Versions: 21

Compression:

Stored size: 484 Bytes

Contents

# frozen_string_literal: true

require 'opal/nodes/call'

module Opal
  module Nodes
    # Safe navigator recv&.meth(arglist, &block)
    class CSendNode < CallNode
      handle :csend

      def default_compile
        helper :send

        conditional_send(recv(receiver_sexp)) do |receiver_temp|
          push '$send(', receiver_temp
          compile_method_name
          compile_arguments
          compile_block_pass
          push ')'
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
opal-1.4.1 lib/opal/nodes/csend.rb
opal-1.4.0 lib/opal/nodes/csend.rb
opal-1.4.0.alpha1 lib/opal/nodes/csend.rb
opal-1.3.2 lib/opal/nodes/csend.rb
opal-1.3.1 lib/opal/nodes/csend.rb
opal-1.3.0 lib/opal/nodes/csend.rb
opal-1.3.0.rc1 lib/opal/nodes/csend.rb
opal-1.3.0.alpha1 lib/opal/nodes/csend.rb
opal-1.2.0 lib/opal/nodes/csend.rb
opal-1.2.0.beta1 lib/opal/nodes/csend.rb
opal-1.1.1 lib/opal/nodes/csend.rb
opal-1.1.1.rc1 lib/opal/nodes/csend.rb
opal-1.1.0 lib/opal/nodes/csend.rb
opal-1.1.0.rc1 lib/opal/nodes/csend.rb
opal-1.0.5 lib/opal/nodes/csend.rb
opal-1.0.4 lib/opal/nodes/csend.rb
opal-1.0.3 lib/opal/nodes/csend.rb
opal-1.0.2 lib/opal/nodes/csend.rb
opal-1.0.1 lib/opal/nodes/csend.rb
opal-1.0.0 lib/opal/nodes/csend.rb