Class: Rubex::AST::Expression::ElementRefMemberCall
- Inherits:
-
StructOrUnionMemberCall
- Object
- Base
- CommandCall
- StructOrUnionMemberCall
- Rubex::AST::Expression::ElementRefMemberCall
- Defined in:
- lib/rubex/ast/expression/struct_or_union_member_call/element_ref_member_call.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #analyse_types(local_scope, struct_scope) ⇒ Object
- #c_code(local_scope) ⇒ Object
- #generate_evaluation_code(code, local_scope) ⇒ Object
Methods inherited from CommandCall
#generate_assignment_code, #generate_disposal_code, #initialize
Methods inherited from Base
#allocate_temp, #allocate_temps, #analyse_for_target_type, #expression?, #from_ruby_object, #generate_and_dispose_subexprs, #generate_assignment_code, #generate_disposal_code, #has_temp, #possible_typecast, #release_temp, #release_temps, #to_ruby_object
Constructor Details
This class inherits a constructor from Rubex::AST::Expression::CommandCall
Instance Method Details
#analyse_types(local_scope, struct_scope) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/rubex/ast/expression/struct_or_union_member_call/element_ref_member_call.rb', line 5 def analyse_types(local_scope, struct_scope) @command.analyse_types local_scope, struct_scope @type = @command.type @has_temp = @command.has_temp @subexprs = [@command] end |
#c_code(local_scope) ⇒ Object
17 18 19 |
# File 'lib/rubex/ast/expression/struct_or_union_member_call/element_ref_member_call.rb', line 17 def c_code(local_scope) @c_code end |
#generate_evaluation_code(code, local_scope) ⇒ Object
12 13 14 15 |
# File 'lib/rubex/ast/expression/struct_or_union_member_call/element_ref_member_call.rb', line 12 def generate_evaluation_code(code, local_scope) @command.generate_element_ref_code @expr, code, local_scope @c_code = @command.c_code(local_scope) end |