Class: Rubex::AST::Expression::Empty

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

Overview

Internal node that denotes empty expression for a statement for example

the `return` for a C function with return type `void`.

Instance Attribute Summary

Attributes inherited from Base

#entry, #type, #typecast

Instance Method Summary collapse

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

Instance Method Details

#analyse_types(_local_scope) ⇒ Object



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

def analyse_types(_local_scope)
  @type = DataType::Void.new
end