Class: Carbon::Compiler::Node::Definition::Module
- Defined in:
- lib/carbon/compiler/node/definition/module.rb
Overview
A module definition. This has one child, a ModuleName node.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#identity? ⇒ true
If this definition is an identity definition.
Methods inherited from Base
#[], #accept, #attributes!, #behavior?, #data, #data?, #each, #initialize, #map!, mapping, #merge!, #type!, #update!
Constructor Details
This class inherits a constructor from Carbon::Compiler::Node::Base
Instance Method Details
#identity? ⇒ true
If this definition is an identity definition. Module definitions are the only identity definitions in a module.
16 17 18 |
# File 'lib/carbon/compiler/node/definition/module.rb', line 16 def identity? true end |