rubyx/lib/sol/ivar_assignment.rb
Torsten Rüger d1f8733623 Rename Vool to Sol
Simple is really the descriptive name for the layer
Sure, it is "virtual" but that is not as important as the fact that it is simple (or simplified)
Also objct (based really) is better, since orientated implies it is a little like that, but only orientated, not really it. Sol only has objects, nothing else
Just cause i was renaming anyway
2019-10-04 00:38:47 +03:00

20 lines
469 B
Ruby

module Sol
class IvarAssignment < Assignment
def to_s(depth = 0)
at_depth(depth,"@#{super(0)}")
end
# We return the position where the local is stored. This is an array, giving the
# position relative to :message- A SlotLoad is constructed from this.
#
# As we know it is a instance variable, it is stored in the :receiver , and has
# the name @name
def slot_position( compiler )
[ :receiver , @name]
end
end
end