Class: Idl::ForLoopSyntaxNode

Inherits:
Treetop::Runtime::SyntaxNode show all
Defined in:
lib/idl/ast.rb

Instance Method Summary collapse

Instance Method Details

#to_astObject



5165
5166
5167
5168
5169
5170
5171
5172
5173
# File 'lib/idl/ast.rb', line 5165

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