Class: Carbon::Compiler::Node::Statement::ElsIf

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

Overview

An elsif statement. This is used in the if/elsif/else construct for control flow. This has three children: the condition for execution, the body for execution, and the following elsif/else statement. This has the form ‘elsif(<Condition>) <Body> <Follow>`.

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