Method: C::Block#replace_types!
- Defined in:
- lib/csquare.rb
#replace_types!(typenames_and_types) ⇒ Object
541 542 543 544 545 546 547 548 549 |
# File 'lib/csquare.rb', line 541 def replace_types! typenames_and_types super typenames_and_types self.stmts.each_with_index do |stmt, i| next unless stmt.Declaration? next unless typenames_and_types.has_key?(stmt.type.) stmt.type. = typenames_and_types[stmt.type.] end end |