You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This location type represents a contiguous range inside a file. It is
conceptually a pair of FileLineCol and size.
Considered:
- Actually nesting a FileLineCol - this has the advantage that everywhere a
walk is done for FileLineCol, it still works; but this results in uniqueing
additional locations which are unlikely to be used and also one would probably
want to specifically handle it so that one gets the best effect.
- Abusing FusedLoc and using a convention but that would result in 3 uniqued
locations per range.
- Extending FileLineColLoc to have an optional size. This one would make the
naming inaccurate and every FileLineColLoc bigger. (was close).
- Different elements being store in attribute: in particular storing the end
line and end column in addition or instead of size. But storing both results
in encoding redundant info and wasn't sure the visual benefit in the
non-sourgemanager case is worth it. And storing these instead would result in
less efficient error emission.
This is a rather minimal change, it does not yet add bindings (C or Python),
bytecode encodings, lowering to LLVM debug locations etc.
0 commit comments