Class: Cyrel::AST::OptimizedNodes::PropertyAccessData

Inherits:
Data
  • Object
show all
Defined in:
lib/cyrel/ast/optimized_nodes.rb

Overview

Simple expression nodes that benefit from fast equality

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#property_nameObject (readonly)

Returns the value of attribute property_name

Returns:

  • (Object)

    the current value of property_name



18
19
20
# File 'lib/cyrel/ast/optimized_nodes.rb', line 18

def property_name
  @property_name
end

#variableObject (readonly)

Returns the value of attribute variable

Returns:

  • (Object)

    the current value of variable



18
19
20
# File 'lib/cyrel/ast/optimized_nodes.rb', line 18

def variable
  @variable
end

Instance Method Details

#accept(visitor) ⇒ Object



19
20
21
# File 'lib/cyrel/ast/optimized_nodes.rb', line 19

def accept(visitor)
  visitor.visit_property_access_data(self)
end