Class: Carbon::Compiler::Node::Expression::Unit

Inherits:
Base
  • Object
show all
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

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

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



11
12
13
# File 'lib/carbon/compiler/node/expression/unit.rb', line 11

def type
  @type
end