class Opal::Nodes::Args::FakeArgNode

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

^

Public Instance Methods

compile() click to toggle source
# File lib/opal/nodes/args/fake_arg.rb, line 18
def compile
  name = scope.next_temp
  scope.add_arg name
  push name
end