class SyntaxTree::YARV::SetLocalWC0
~~~
value = 5
~~~ruby
### Usage
argument.
the top of the stack as determined by the index given as its only
sets the value of a local variable on the current frame to the value at
`setlocal_WC_0` is a specialized version of the ‘setlocal` instruction. It
### Summary
def ==(other)
def ==(other) other.is_a?(SetLocalWC0) && other.index == index end
def call(vm)
def call(vm) canonical.call(vm) end
def canonical
def canonical SetLocal.new(index, 0) end
def deconstruct_keys(_keys)
def deconstruct_keys(_keys) { index: index } end
def disasm(fmt)
def disasm(fmt) fmt.instruction("setlocal_WC_0", [fmt.local(index, implicit: 0)]) end
def initialize(index)
def initialize(index) @index = index end
def length
def length 2 end
def pops
def pops 1 end
def to_a(iseq)
def to_a(iseq) [:setlocal_WC_0, iseq.local_table.offset(index)] end