Class: Carbon::Compiler::Node::Expression::Unit
- Defined in:
- lib/carbon/compiler/node/expression/unit.rb
Overview
A “unit”. This takes the form of ‘(<Expressions>)`. This is used as a sort of “mini-struct”. Mostly unused at the moment.
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Attributes inherited from Base
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
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
11 12 13 |
# File 'lib/carbon/compiler/node/expression/unit.rb', line 11 def type @type end |