fix position handling
This commit is contained in:
parent
6d67c03cc9
commit
050a8ada9f
@ -167,11 +167,13 @@ module Virtual
|
||||
# position of the function is the position of the entry block, is where we call
|
||||
def set_position at
|
||||
@blocks.each do |block|
|
||||
blocks.set_position at
|
||||
block.set_position at
|
||||
at = at + block.length
|
||||
end
|
||||
end
|
||||
|
||||
def position
|
||||
@blocks.first.position
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user