Class: Carbon::Compiler::Node::Statement::If

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

Overview

An If statement. This is used in the if/elsif/else construct for control flow. This has three children: the children, the body, and the following elsif/else statement. This takes the form ‘if(<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