Class: Rubinius::AST::ScopedModuleName

Inherits:
ModuleName show all
Defined in:
lib/compiler/ast/definitions.rb

Instance Attribute Summary collapse

Attributes inherited from ModuleName

#name

Attributes inherited from Node

#line

Instance Method Summary collapse

Methods inherited from Node

#ascii_graph, #attributes, #children, match_arguments?, match_send?, #new_block_generator, #new_generator, #node_name, node_name, #pos, #set_child, transform, #transform, transform_comment, transform_kind, transform_kind=, transform_name, #visit, #walk

Constructor Details

#initialize(line, node) ⇒ ScopedModuleName

Returns a new instance of ScopedModuleName.



581
582
583
584
585
# File 'lib/compiler/ast/definitions.rb', line 581

def initialize(line, node)
  @line = line
  @name = node.name
  @parent = node.parent
end

Instance Attribute Details

#parentObject

Returns the value of attribute parent.



579
580
581
# File 'lib/compiler/ast/definitions.rb', line 579

def parent
  @parent
end

Instance Method Details

#to_sexpObject



587
588
589
# File 'lib/compiler/ast/definitions.rb', line 587

def to_sexp
  [:colon2, @parent.to_sexp, @name]
end