need to collect labels for return
so the interpreter can find the object
This commit is contained in:
@ -13,6 +13,10 @@ module Register
|
||||
#puts "adding #{' ' * depth}:#{object.class}"
|
||||
#puts "ADD #{object.first.class}, #{object.last.class}" if object.is_a? Array
|
||||
return unless self.add_object object
|
||||
# probably should make labels or even instructions derive from Parfait::Object, but . .
|
||||
if object.is_a? Register::Label
|
||||
object.each_label { |l| self.add_object(l)}
|
||||
end
|
||||
return unless object.respond_to? :has_layout?
|
||||
layout = object.get_layout
|
||||
keep(layout , depth + 1)
|
||||
|
Reference in New Issue
Block a user