class SyntaxTree::YARV::Jump


~~~
end
puts “2”
else
puts “0”
if x == 0
x = 0
~~~ruby
### Usage
`jump` unconditionally jumps to the label given as its only argument.
### Summary

def ==(other)

def ==(other)
  other.is_a?(Jump) && other.label == label
end

def branch_targets

def branch_targets
  [label]
end

def call(vm)

def call(vm)
  vm.jump(label)
end

def deconstruct_keys(_keys)

def deconstruct_keys(_keys)
  { label: label }
end

def disasm(fmt)

def disasm(fmt)
  fmt.instruction("jump", [fmt.label(label)])
end

def initialize(label)

def initialize(label)
  @label = label
end

def length

def length
  2
end

def to_a(_iseq)

def to_a(_iseq)
  [:jump, label.name]
end