Class: Rubinius::ToolSet.current::TS::AST::InstanceVariableAssignment

Inherits:
VariableAssignment show all
Defined in:
lib/rubinius/ast/variables.rb

Instance Attribute Summary

Attributes inherited from VariableAssignment

#name, #value

Attributes inherited from Node

#line

Instance Method Summary collapse

Methods inherited from VariableAssignment

#defined, #initialize, #to_sexp

Methods inherited from Node

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

Constructor Details

This class inherits a constructor from Rubinius::ToolSet.current::TS::AST::VariableAssignment

Instance Method Details

#bytecode(g) ⇒ Object



459
460
461
462
463
464
# File 'lib/rubinius/ast/variables.rb', line 459

def bytecode(g)
  @value.bytecode(g) if @value

  pos(g)
  g.set_ivar @name
end

#sexp_nameObject



466
467
468
# File 'lib/rubinius/ast/variables.rb', line 466

def sexp_name
  :iasgn
end