Class: Carbon::Compiler::Node::Definition::Module

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

#children, #location

Instance Method Summary collapse

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.

Returns:

  • (true)


16
17
18
# File 'lib/carbon/compiler/node/definition/module.rb', line 16

def identity?
  true
end