Class: Carbon::Compiler::Node::Statement::For

Inherits:
Base
  • Object
show all
Defined in:
lib/carbon/compiler/node/statement/for.rb

Overview

A for loop. This is used to construct a loop with the given conditions. This has four children: the initial statement, the condition, the increment statement, and the body. This takes the form of ‘for(<Initial>; <Condition>; <Increment>) <Body>`.

Instance Attribute Summary

Attributes inherited from Base

#children, #location

Method Summary

Methods inherited from Base

#[], #accept, #attributes!, #behavior?, #data, #data?, #each, #identity?, #initialize, #map!, mapping, #merge!, #type!, #update!

Constructor Details

This class inherits a constructor from Carbon::Compiler::Node::Base