Skip to content

Should changing the file/path of a source location keep the offset&length information? #821

@DavyLandman

Description

@DavyLandman

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions