Sha256: 0eedc329de139f44dc91961c2f04b9d58872e38219da177944baacf3162789fa
Contents?: true
Size: 560 Bytes
Versions: 40
Compression:
Stored size: 560 Bytes
Contents
# frozen_string_literal: true require 'opal/nodes/base' module Opal module Nodes module Args # Compiles a fake argument produced by the InlineArgs rewriter. # # This argument represents an argument from the # Ruby code that gets initialized later in the function body. # # def m(a = 1, b); end # ^ class FakeArgNode < Base handle :fake_arg def compile name = scope.next_temp scope.add_arg name push name end end end end end
Version data entries
40 entries across 40 versions & 1 rubygems