Class: Carbon::Compiler::Node::Definition::Directive

Inherits:
Base
  • Object
show all
Defined in:
lib/carbon/compiler/node/definition/directive.rb,
lib/carbon/compiler/node/definition/directive/function.rb

Overview

A directive. This is normally anything that starts with a colon in the source file. This contains information about said directive.

Defined Under Namespace

Classes: Function

Instance Attribute Summary

Attributes inherited from Base

#children, #location

Instance Method Summary collapse

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 Method Details

#valueObject



15
16
17
# File 'lib/carbon/compiler/node/definition/directive.rb', line 15

def value
  name.value
end