Sha256: eaaec9f76d50117c2827844c855b32e3822250155b8010be2cfb884a212d3e89

Contents?: true

Size: 485 Bytes

Versions: 7

Compression:

Stored size: 485 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

7 entries across 7 versions & 1 rubygems

Version Path
opal-0.11.4 lib/opal/nodes/csend.rb
opal-0.11.3 lib/opal/nodes/csend.rb
opal-0.11.2 lib/opal/nodes/csend.rb
opal-0.11.1 lib/opal/nodes/csend.rb
opal-0.11.1.pre lib/opal/nodes/csend.rb
opal-0.11.0 lib/opal/nodes/csend.rb
opal-0.11.0.rc1 lib/opal/nodes/csend.rb