class SyntaxTree::YARV::GetLocalWC0


~~~
value
value = 5
~~~ruby
### Usage
the index given as its only argument.
fetches the value of a local variable from the current frame determined by
`getlocal_WC_0` is a specialized version of the ‘getlocal` instruction. It
### Summary

def ==(other)

def ==(other)
  other.is_a?(GetLocalWC0) && other.index == index
end

def call(vm)

def call(vm)
  canonical.call(vm)
end

def canonical

def canonical
  GetLocal.new(index, 0)
end

def deconstruct_keys(_keys)

def deconstruct_keys(_keys)
  { index: index }
end

def disasm(fmt)

def disasm(fmt)
  fmt.instruction("getlocal_WC_0", [fmt.local(index, implicit: 0)])
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_0, iseq.local_table.offset(index)]
end