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

Inherits:
Node
  • Object
show all
Defined in:
lib/rubinius/ast/variables.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#line

Instance Method Summary collapse

Methods inherited from Node

#ascii_graph, #attributes, #bytecode, #children, #defined, 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, #visit, #walk

Constructor Details

#initialize(line, name) ⇒ VariableAccess

Returns a new instance of VariableAccess.



109
110
111
112
# File 'lib/rubinius/ast/variables.rb', line 109

def initialize(line, name)
  @line = line
  @name = name
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



107
108
109
# File 'lib/rubinius/ast/variables.rb', line 107

def name
  @name
end

Instance Method Details

#value_defined(g, f) ⇒ Object



114
115
116
117
# File 'lib/rubinius/ast/variables.rb', line 114

def value_defined(g, f)
  variable_defined(g, f)
  bytecode(g)
end