Class: Idl::ForLoopSyntaxNode

Inherits:
SyntaxNode show all
Defined in:
lib/idlc/ast.rb

Instance Method Summary collapse

Methods inherited from Treetop::Runtime::SyntaxNode

#set_input_file, #set_input_file_unless_already_set, #space?

Instance Method Details

#to_astObject



8588
8589
8590
8591
8592
8593
8594
8595
8596
# File 'lib/idlc/ast.rb', line 8588

def to_ast
  ForLoopAst.new(
    input, interval,
    send(:for_loop_iteration_variable_declaration).to_ast,
    send(:condition).to_ast,
    send(:action).to_ast,
    send(:stmts).elements.map(&:s).map(&:to_ast)
  )
end