Class: C::Declaration

Inherits:
Object
  • Object
show all
Defined in:
lib/csquare.rb

Overview

These add to_h functions for figuring out what the parameters and their types are, and the local variables and their types, respectively. See csquare/function.rb to see how these to_h functions are used.

Instance Method Summary collapse

Instance Method Details

#recombine!(function, blueprint, type_symbol, return_type = nil) ⇒ Object

Replace some expression with the pattern from Blueprint.



707
708
709
710
711
712
713
714
715
# File 'lib/csquare.rb', line 707

def recombine! function, blueprint, type_symbol, return_type=nil
  args_types = {}

  declarators.each do |n|
    result = n.recombine! function, blueprint, type_symbol
  end

  [self, nil]
end