Repository navigation
Added a few location while parsing - #13624
Conversation
| { let docs = symbol_docs $sloc in | ||
| let attrs = attrs1 @ attrs2 in | ||
| Te.mk tid cs ~params ~priv ~attrs ~docs, | ||
| Te.mk tid cs ~params ~priv ~attrs ~docs ~loc:(make_loc $sloc), |
There was a problem hiding this comment.
let loc = make_loc $sloc in would be more consistent with other cases above.
There was a problem hiding this comment.
It is indeed more coherent with the other changes but not with the overall cases in the lines around that one (for example on line 3416)
There was a problem hiding this comment.
Should I do this change to have coherence with similar cases or keep it that way for local coherence ?
There was a problem hiding this comment.
Whatever. I think let loc is slightly nicer, but Those Who Do the Work Decide, so let's keep things as you prefer.
There was a problem hiding this comment.
I concluded that it was indeed nicer if we didn't care about the local coherence and did the modification
| ### Internal/compiler-libs changes: | ||
|
|
||
| - #XXXXX: Added location to exception definitions and type extensions | ||
| (Samuel Vivien, review by ...) |
There was a problem hiding this comment.
You should complete this and the PR is good to go.
Added the locations at 3 parsing locations where it had been forgotten.
This does not impact the interface because nobody reads those locations but it is cleaner to have them.