Class: Carbon::Compiler::Node::Statement::Else

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

Overview

An else statement. This is used in the if/elsif/else construct to handle control flow. This has one child: the body of the else statement. This has the form of ‘else <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