Class: Carbon::Compiler::Node::Statement::While

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

Overview

A while loop. This creates a loop that executes while a given condition is true. This has two children: the condition to check for truthiness, and the body to execute. This takes the form of ‘while(<Condition>) <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