Class: Idl::ForLoopSyntaxNode

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

Instance Method Summary collapse

Instance Method Details

#to_astObject



5130
5131
5132
5133
5134
5135
5136
5137
5138
# File 'lib/idl/ast.rb', line 5130

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