Both @joukestoel and I have recently run into this confusion:
rascal>x = |file:///test/path/file.name|(10,30);
loc: |file:///test/path/file.name|(10,30)
rascal>x[path="/other/file.name"]
loc: |file:///other/file.name|(10,30)
the location keeps the offset & length, I think that perhaps certain changes in the path should drop the offset information?
So what do you think, what would be more expected/consistent? And are there certain changes that might not drop the offset information?