Repository navigation
Improve source_loc - #1527
Improve source_loc#1527
Conversation
Leonidas-from-XIV
left a comment
There was a problem hiding this comment.
Thanks for factoring out this improvement, it makes reviewing the change easier! My comments are mostly about understandability for me and future readers of the code.
Extracted from "Add source locations to more places (ocaml#14)", without the Source_loc_jane field.
|
I've been going back and forth a bit about this PR. It's adding a new feature with no obvious consumers, and it's a little bit potentially misleading, as seeing Having said that, the lnum field can serve a good purpose (and indeed does at JS) of allowing e.g. a search index to link to the line(s) being referenced. So I guess this is OK. |
|
Sorry, that sounded pretty negative - it was more a comment on this as a standalone piece of work than on the efforts that people have put in. Thanks @art-w and everyone else! :-) |
This PR is an extract from #1520 by @avsm of only the commits related to improving source locations. Some changes:
loc_end(which dropped the need for this commit 7d83062 updating the test for a wrong output)Source_loc_jane, which we could still add later but currently it's unused in odoc