Class: Rubex::AST::Expression::FuncPtrInternalArgDeclaration

Inherits:
ArgDeclaration show all
Defined in:
lib/rubex/ast/expression/func_ptr_internal_arg_declaration.rb

Overview

Function argument is the argument of a function pointer.

Instance Attribute Summary

Attributes inherited from ArgDeclaration

#data_hash

Attributes inherited from Base

#entry, #type, #typecast

Instance Method Summary collapse

Methods inherited from ArgDeclaration

#initialize

Methods inherited from Base

#allocate_temp, #allocate_temps, #analyse_for_target_type, #c_code, #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

Constructor Details

This class inherits a constructor from Rubex::AST::Expression::ArgDeclaration

Instance Method Details

#analyse_types(_local_scope, extern: false) ⇒ Object



6
7
8
9
# File 'lib/rubex/ast/expression/func_ptr_internal_arg_declaration.rb', line 6

def analyse_types(_local_scope, extern: false)
  var, dtype, ident, ptr_level, value = fetch_data
  @type = Helpers.determine_dtype(dtype, ptr_level)
end