class SyntaxTree::YARV::Swap


])
~~~ruby
### Usage
`swap` does not dispatch any events.
### TracePoint
`swap` swaps the top two elements in the stack.
### Summary

def ==(other)

def ==(other)
  other.is_a?(Swap)
end

def call(vm)

def call(vm)
  left, right = vm.pop(2)
  vm.push(right, left)
end

def deconstruct_keys(_keys)

def deconstruct_keys(_keys)
  {}
end

def disasm(fmt)

def disasm(fmt)
  fmt.instruction("swap")
end

def pops

def pops
  2
end

def pushes

def pushes
  2
end

def to_a(_iseq)

def to_a(_iseq)
  [:swap]
end