Class: Duby::AST::JRubyAst::WhileNode
- Inherits:
-
Object
- Object
- Duby::AST::JRubyAst::WhileNode
- Defined in:
- lib/duby/transform.rb
Instance Method Summary collapse
Instance Method Details
#transform(transformer, parent) ⇒ Object
1020 1021 1022 1023 1024 1025 1026 1027 |
# File 'lib/duby/transform.rb', line 1020 def transform(transformer, parent) Loop.new(parent, position, evaluate_at_start, false) do |loop| [ Condition.new(loop, condition_node.position) {|cond| [transformer.transform(condition_node, cond)]}, transformer.transform(body_node, loop) ] end end |