Class: Duby::AST::JRubyAst::RescueNode

Inherits:
Object
  • Object
show all
Defined in:
lib/duby/transform.rb

Instance Method Summary collapse

Instance Method Details

#transform(transformer, parent) ⇒ Object



796
797
798
799
800
801
802
803
# File 'lib/duby/transform.rb', line 796

def transform(transformer, parent)
  Rescue.new(parent, position) do |node|
    [
      transformer.transform(body_node, node),
      rescue_node ? transformer.transform(rescue_node, node) : []
    ]
  end
end