class SyntaxTree::YARV::GetLocalWC1
~~~
self.then { value }
value = 5
~~~ruby
### Usage
the index given as its only argument.
fetches the value of a local variable from the parent frame determined by
`getlocal_WC_1` is a specialized version of the ‘getlocal` instruction. It
### Summary
def ==(other)
def ==(other) other.is_a?(GetLocalWC1) && other.index == index end
def call(vm)
def call(vm) canonical.call(vm) end
def canonical
def canonical GetLocal.new(index, 1) end
def deconstruct_keys(_keys)
def deconstruct_keys(_keys) { index: index } end
def disasm(fmt)
def disasm(fmt) fmt.instruction("getlocal_WC_1", [fmt.local(index, implicit: 1)]) end
def initialize(index)
def initialize(index) @index = index end
def length
def length 2 end
def pushes
def pushes 1 end
def to_a(iseq)
def to_a(iseq) [:getlocal_WC_1, iseq.parent_iseq.local_table.offset(index)] end