2018-07-20 14:22:26 +03:00
|
|
|
module Vool
|
|
|
|
|
|
|
|
class IvarAssignment < Assignment
|
|
|
|
|
2019-08-16 14:09:56 +03:00
|
|
|
def to_s(depth = 0)
|
2019-08-16 20:39:08 +03:00
|
|
|
at_depth(depth,"@#{super(0)}")
|
2019-08-16 14:09:56 +03:00
|
|
|
end
|
|
|
|
|
2019-08-16 20:39:08 +03:00
|
|
|
# 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]
|
2018-07-20 14:22:26 +03:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|