Class: Rubex::AST::Expression::Self

Inherits:
Base
  • Object
show all
Defined in:
lib/rubex/ast/expression/self.rb

Instance Attribute Summary

Attributes inherited from Base

#entry, #typecast

Instance Method Summary collapse

Methods inherited from Base

#allocate_temp, #allocate_temps, #analyse_for_target_type, #analyse_types, #expression?, #from_ruby_object, #generate_and_dispose_subexprs, #generate_assignment_code, #generate_disposal_code, #generate_evaluation_code, #has_temp, #possible_typecast, #release_temp, #release_temps, #to_ruby_object

Instance Method Details

#c_code(local_scope) ⇒ Object



5
6
7
# File 'lib/rubex/ast/expression/self.rb', line 5

def c_code(local_scope)
  local_scope.self_name
end

#typeObject



9
10
11
# File 'lib/rubex/ast/expression/self.rb', line 9

def type
  Rubex::DataType::RubyObject.new
end