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
|
# position of the function is the position of the entry block, is where we call
|
||||||
def set_position at
|
def set_position at
|
||||||
@blocks.each do |block|
|
@blocks.each do |block|
|
||||||
blocks.set_position at
|
block.set_position at
|
||||||
at = at + block.length
|
at = at + block.length
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
def position
|
||||||
|
@blocks.first.position
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user