diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2022-02-09 13:57:38 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-02-23 08:16:43 -0500 |
commit | 37deb893a915387d663416936b63f8fb74298f42 (patch) | |
tree | 01b1d892c701db7eaa9840c1f635a44022409f7c /compiler/GHC/HsToCore | |
parent | 2ed22ba19e6324fda81a7d638f6f3b58254f915f (diff) | |
download | haskell-37deb893a915387d663416936b63f8fb74298f42.tar.gz |
Use SrcSpan from the binder as initial source estimate
There are some situations where we end up with no source notes in useful
positions in an expression. In this case we currently fail to provide
any source information about where an expression came from.
This patch improves the initial estimate by using the position from the
top-binder as the guess for the location of the whole inner expression.
It provides quite a course estimate but it's better than nothing.
Ticket #20847
Diffstat (limited to 'compiler/GHC/HsToCore')
0 files changed, 0 insertions, 0 deletions